Package com.consol.citrus.jms.endpoint
Class JmsSyncEndpoint
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpoint
-
- com.consol.citrus.jms.endpoint.JmsEndpoint
-
- com.consol.citrus.jms.endpoint.JmsSyncEndpoint
-
- All Implemented Interfaces:
InitializingPhase,Named,ShutdownPhase,Endpoint,com.consol.citrus.spi.ReferenceResolverAware
public class JmsSyncEndpoint extends JmsEndpoint implements ShutdownPhase
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
Constructors Constructor Description JmsSyncEndpoint()Default constructor initializing endpoint.JmsSyncEndpoint(JmsSyncEndpointConfiguration endpointConfiguration)Constructor using endpoint configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.messaging.SelectiveConsumercreateConsumer()com.consol.citrus.messaging.ProducercreateProducer()voiddestroy()JmsSyncEndpointConfigurationgetEndpointConfiguration()-
Methods inherited from class com.consol.citrus.jms.endpoint.JmsEndpoint
getSubscriberName, initialize, setReferenceResolver
-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpoint
getActor, getConsumerName, getName, getProducerName, setActor, setName
-
-
-
-
Constructor Detail
-
JmsSyncEndpoint
public JmsSyncEndpoint()
Default constructor initializing endpoint.
-
JmsSyncEndpoint
public JmsSyncEndpoint(JmsSyncEndpointConfiguration endpointConfiguration)
Constructor using endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Detail
-
getEndpointConfiguration
public JmsSyncEndpointConfiguration getEndpointConfiguration()
- Specified by:
getEndpointConfigurationin interfaceEndpoint- Overrides:
getEndpointConfigurationin classJmsEndpoint
-
createConsumer
public com.consol.citrus.messaging.SelectiveConsumer createConsumer()
- Specified by:
createConsumerin interfaceEndpoint- Overrides:
createConsumerin classJmsEndpoint
-
createProducer
public com.consol.citrus.messaging.Producer createProducer()
- Specified by:
createProducerin interfaceEndpoint- Overrides:
createProducerin classJmsEndpoint
-
destroy
public void destroy()
- Specified by:
destroyin interfaceShutdownPhase- Overrides:
destroyin classJmsEndpoint
-
-