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:
jakarta.jms.ExceptionListener
,AutoCloseable
,org.apache.camel.AfterPropertiesConfigured
,MessageListenerContainer
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
This
MessageListenerContainer
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.-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.jms.MessageConsumer
createMessageConsumer
(jakarta.jms.Session session) protected jakarta.jms.Session
createSession
(jakarta.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
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
ExclusiveQueueMessageListenerContainer
-
-
Method Details
-
createSession
protected jakarta.jms.Session createSession(jakarta.jms.Connection connection, SjmsEndpoint endpoint) throws Exception - Overrides:
createSession
in classSimpleMessageListenerContainer
- Throws:
Exception
-
createMessageConsumer
protected jakarta.jms.MessageConsumer createMessageConsumer(jakarta.jms.Session session) throws Exception - Overrides:
createMessageConsumer
in classSimpleMessageListenerContainer
- Throws:
Exception
-