Package org.citrusframework.jms.endpoint
Class JmsSyncEndpoint
java.lang.Object
org.citrusframework.endpoint.AbstractEndpoint
org.citrusframework.jms.endpoint.JmsEndpoint
org.citrusframework.jms.endpoint.JmsSyncEndpoint
- All Implemented Interfaces:
InitializingPhase,Named,ShutdownPhase,Endpoint,ReferenceResolverAware
Synchronous Jms message endpoint. When sending messages endpoint sets replyTo message header and waits for synchronous response.
When receiving messages endpoint reads replyTo header from incoming request and sends synchronous response back.
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor initializing endpoint.JmsSyncEndpoint(JmsSyncEndpointConfiguration endpointConfiguration) Constructor using endpoint configuration. -
Method Summary
Modifier and TypeMethodDescriptionorg.citrusframework.messaging.SelectiveConsumerorg.citrusframework.messaging.Producervoiddestroy()Methods inherited from class org.citrusframework.jms.endpoint.JmsEndpoint
getSubscriberName, initialize, setReferenceResolverMethods inherited from class org.citrusframework.endpoint.AbstractEndpoint
getActor, getConsumerName, getName, getProducerName, setActor, setName
-
Constructor Details
-
JmsSyncEndpoint
public JmsSyncEndpoint()Default constructor initializing endpoint. -
JmsSyncEndpoint
Constructor using endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Details
-
getEndpointConfiguration
- Specified by:
getEndpointConfigurationin interfaceEndpoint- Overrides:
getEndpointConfigurationin classJmsEndpoint
-
createConsumer
public org.citrusframework.messaging.SelectiveConsumer createConsumer()- Specified by:
createConsumerin interfaceEndpoint- Overrides:
createConsumerin classJmsEndpoint
-
createProducer
public org.citrusframework.messaging.Producer createProducer()- Specified by:
createProducerin interfaceEndpoint- Overrides:
createProducerin classJmsEndpoint
-
destroy
public void destroy()- Specified by:
destroyin interfaceShutdownPhase- Overrides:
destroyin classJmsEndpoint
-