Class ExclusiveQueueMessageListenerContainer
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.component.sjms.consumer.SimpleMessageListenerContainer
-
- org.apache.camel.component.sjms.reply.ExclusiveQueueMessageListenerContainer
-
- All Implemented Interfaces:
AutoCloseable
,javax.jms.ExceptionListener
,org.apache.camel.AfterPropertiesConfigured
,MessageListenerContainer
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public class ExclusiveQueueMessageListenerContainer extends SimpleMessageListenerContainer
ThisMessageListenerContainer
is used for reply queues which are exclusive. Mind that exclusive reply queues is per producer, so if you run in a clustered environment then each producer should use an unique reply queue destination name. If not then other nodes may steal reply messages which was intended for another. For clustered environments it may be safer to use shared queues as each node will only consume reply messages which are intended for itself.
-
-
Constructor Summary
Constructors Constructor Description ExclusiveQueueMessageListenerContainer(SjmsEndpoint endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.jms.MessageConsumer
createMessageConsumer(javax.jms.Session session)
protected javax.jms.Session
createSession(javax.jms.Connection connection, SjmsEndpoint endpoint)
-
Methods inherited from class org.apache.camel.component.sjms.consumer.SimpleMessageListenerContainer
afterPropertiesConfigured, configureConsumer, createConnection, doStart, doStop, getClientId, getConcurrentConsumers, getConnectionFactory, getDestinationCreationStrategy, getDestinationName, getEndpoint, initConsumers, onException, recoverConnection, refreshConnection, scheduleConnectionRecovery, setClientId, setConcurrentConsumers, setDestinationCreationStrategy, setDestinationName, setExceptionListener, setMessageListener, startConnection, stopConnection, stopConsumers
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ExclusiveQueueMessageListenerContainer
public ExclusiveQueueMessageListenerContainer(SjmsEndpoint endpoint)
-
-
Method Detail
-
createSession
protected javax.jms.Session createSession(javax.jms.Connection connection, SjmsEndpoint endpoint) throws Exception
- Overrides:
createSession
in classSimpleMessageListenerContainer
- Throws:
Exception
-
createMessageConsumer
protected javax.jms.MessageConsumer createMessageConsumer(javax.jms.Session session) throws Exception
- Overrides:
createMessageConsumer
in classSimpleMessageListenerContainer
- Throws:
Exception
-
-