Class TemporaryQueueReplyManager

  • 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

    public class TemporaryQueueReplyManager
    extends ReplyManagerSupport
    A ReplyManager when using temporary queues.
    • Constructor Detail

      • TemporaryQueueReplyManager

        public TemporaryQueueReplyManager​(org.apache.camel.CamelContext camelContext)
    • Method Detail

      • updateCorrelationId

        public void updateCorrelationId​(String correlationId,
                                        String newCorrelationId,
                                        long requestTimeout)
        Description copied from interface: ReplyManager
        Updates 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 id
        newCorrelationId - the real correlation id
        requestTimeout - the timeout
      • setReplyToSelectorHeader

        public void setReplyToSelectorHeader​(org.apache.camel.Message camelMessage,
                                             javax.jms.Message jmsMessage)
                                      throws javax.jms.JMSException
        Description copied from interface: ReplyManager
        To be used when a reply queue is used with a custom JMS selector is being used.
        Throws:
        javax.jms.JMSException