Package org.citrusframework.jms.endpoint
Class JmsEndpoint
java.lang.Object
org.citrusframework.endpoint.AbstractEndpoint
org.citrusframework.jms.endpoint.JmsEndpoint
- All Implemented Interfaces:
InitializingPhase,Named,ShutdownPhase,Endpoint,ReferenceResolverAware
- Direct Known Subclasses:
JmsSyncEndpoint
public class JmsEndpoint
extends AbstractEndpoint
implements InitializingPhase, ShutdownPhase, ReferenceResolverAware
Jms message endpoint capable of sending/receiving messages from Jms message destination. Either uses a Jms connection factory or
a Spring Jms template to connect with Jms destinations.
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor initializing endpoint configuration.JmsEndpoint(JmsEndpointConfiguration endpointConfiguration) Constructor with endpoint configuration. -
Method Summary
Modifier and TypeMethodDescriptionorg.citrusframework.messaging.SelectiveConsumerorg.citrusframework.messaging.Producervoiddestroy()protected StringGets the endpoints consumer name.voidvoidsetReferenceResolver(ReferenceResolver referenceResolver) Methods inherited from class org.citrusframework.endpoint.AbstractEndpoint
getActor, getConsumerName, getName, getProducerName, setActor, setName
-
Constructor Details
-
JmsEndpoint
public JmsEndpoint()Default constructor initializing endpoint configuration. -
JmsEndpoint
Constructor with endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Details
-
createConsumer
public org.citrusframework.messaging.SelectiveConsumer createConsumer()- Specified by:
createConsumerin interfaceEndpoint
-
createProducer
public org.citrusframework.messaging.Producer createProducer()- Specified by:
createProducerin interfaceEndpoint
-
getSubscriberName
Gets the endpoints consumer name.- Returns:
-
getEndpointConfiguration
- Specified by:
getEndpointConfigurationin interfaceEndpoint- Overrides:
getEndpointConfigurationin classAbstractEndpoint
-
destroy
public void destroy()- Specified by:
destroyin interfaceShutdownPhase
-
initialize
public void initialize()- Specified by:
initializein interfaceInitializingPhase
-
setReferenceResolver
- Specified by:
setReferenceResolverin interfaceReferenceResolverAware
-