Class QueueReplyManager
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.jms.reply.ReplyManagerSupport
org.apache.camel.component.jms.reply.QueueReplyManager
- All Implemented Interfaces:
AutoCloseable,ReplyManager,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService,org.springframework.jms.listener.SessionAwareMessageListener
A
ReplyManager when using regular queues.-
Field Summary
Fields inherited from class org.apache.camel.component.jms.reply.ReplyManagerSupport
camelContext, correlation, correlationProperty, endpoint, executorService, listenerContainer, log, replyTo, scheduledExecutorServiceFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.jms.listener.DefaultMessageListenerContainerprotected org.springframework.jms.listener.AbstractMessageListenerContainerprotected ReplyHandlercreateReplyHandler(ReplyManager replyManager, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, String originalCorrelationId, String correlationId, long requestTimeout) protected org.springframework.jms.listener.AbstractMessageListenerContainerprotected voidhandleReplyMessage(String correlationID, jakarta.jms.Message message, jakarta.jms.Session session) voidsetReplyToSelectorHeader(org.apache.camel.Message camelMessage, jakarta.jms.Message jmsMessage) To be used when a reply queue is used with a custom JMS selector is being used.voidupdateCorrelationId(String correlationId, String newCorrelationId, long requestTimeout) Updates the correlation id to the new correlation id.Methods inherited from class org.apache.camel.component.jms.reply.ReplyManagerSupport
doStart, doStop, getAbstractMessageListenerContainer, getReplyTo, onMessage, processReply, registerReply, setCorrelationProperty, setEndpoint, setOnTimeoutExecutorService, setReplyTo, setScheduledExecutorService, setupClientId, waitForProvisionCorrelationToBeUpdatedMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
QueueReplyManager
public QueueReplyManager(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
createReplyHandler
protected ReplyHandler createReplyHandler(ReplyManager replyManager, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, String originalCorrelationId, String correlationId, long requestTimeout) - Specified by:
createReplyHandlerin classReplyManagerSupport
-
updateCorrelationId
Description copied from interface:ReplyManagerUpdates the correlation id to the new correlation id. This is only used when useMessageIDasCorrelationID option is used, which means a provisional correlation id is first used, then after the message has been sent, the real correlation id is known. This allows us then to update the internal mapping to expect the real correlation id.- Parameters:
correlationId- the provisional correlation idnewCorrelationId- the real correlation idrequestTimeout- the timeout
-
handleReplyMessage
protected void handleReplyMessage(String correlationID, jakarta.jms.Message message, jakarta.jms.Session session) - Specified by:
handleReplyMessagein classReplyManagerSupport
-
setReplyToSelectorHeader
public void setReplyToSelectorHeader(org.apache.camel.Message camelMessage, jakarta.jms.Message jmsMessage) throws jakarta.jms.JMSException Description copied from interface:ReplyManagerTo be used when a reply queue is used with a custom JMS selector is being used.- Throws:
jakarta.jms.JMSException
-
createListenerContainer
protected org.springframework.jms.listener.AbstractMessageListenerContainer createListenerContainer() throws Exception- Specified by:
createListenerContainerin classReplyManagerSupport- Throws:
Exception
-
createSimpleListenerContainer
protected org.springframework.jms.listener.AbstractMessageListenerContainer createSimpleListenerContainer() -
createDefaultListenerContainer
protected org.springframework.jms.listener.DefaultMessageListenerContainer createDefaultListenerContainer() throws Exception- Throws:
Exception
-