Camel
  1. Camel
  2. CAMEL-2470

camel-jms - Look into issue with temporary queue being sent to another temp queue

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.4.0
    • Component/s: camel-jms
    • Labels:
      None
    1. Test.java
      4 kB
      Aaron Riekenberg

      Activity

      Hide
      Claus Ibsen added a comment -

      Closing all resolved tickets from 2010 or older

      Show
      Claus Ibsen added a comment - Closing all resolved tickets from 2010 or older
      Hide
      Claus Ibsen added a comment -

      trunk: 949117.

      I added a test to show how to send back a reply to a JMSReplyTo which is based on a temporary queue

      Show
      Claus Ibsen added a comment - trunk: 949117. I added a test to show how to send back a reply to a JMSReplyTo which is based on a temporary queue
      Hide
      Claus Ibsen added a comment -

      @Aaron

      Camel will automatic do request/reply so you do not have to manually send the reply in the bean code. Just let the bean return the reply message instead.

      However I have found the problem with Camel sending to another reply destination. Its because the producer template is basing the destination on a String name, which the temporary queues did not take into account. Therefore it just created a new temporary queue and hence the reply is send to that.

      Show
      Claus Ibsen added a comment - @Aaron Camel will automatic do request/reply so you do not have to manually send the reply in the bean code. Just let the bean return the reply message instead. However I have found the problem with Camel sending to another reply destination. Its because the producer template is basing the destination on a String name, which the temporary queues did not take into account. Therefore it just created a new temporary queue and hence the reply is send to that.
      Hide
      Aaron Riekenberg added a comment -

      Attaching test case showing the problem.

      Notice when running this test case that camel sends a message to a different temporary queue than what is specified for the endpoint:

      07:06:13,154 INFO Test - calling producerTemplate.sendBody, tempQueueEndpointName = activemq:temp:queue:ID:core2-34974-1266066372002-2:1:1

      07:06:13,356 DEBUG JmsConfiguration$CamelJmsTemplate - Sending JMS message to: temp-queue://ID:core2-34974-1266066372002-2:2:1 with message: ActiveMQTextMessage

      {commandId = 0, responseRequired = false, messageId = null, originalDestination = null, originalTransactionId = null, producerId = null, destination = null, transactionId = null, expiration = 0, timestamp = 0, arrival = 0, brokerInTime = 0, brokerOutTime = 0, correlationId = null, replyTo = null, persistent = false, type = null, priority = 0, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties = false, readOnlyBody = false, droppable = false, text = response}
      Show
      Aaron Riekenberg added a comment - Attaching test case showing the problem. Notice when running this test case that camel sends a message to a different temporary queue than what is specified for the endpoint: 07:06:13,154 INFO Test - calling producerTemplate.sendBody, tempQueueEndpointName = activemq:temp:queue:ID:core2-34974-1266066372002-2:1:1 07:06:13,356 DEBUG JmsConfiguration$CamelJmsTemplate - Sending JMS message to: temp-queue://ID:core2-34974-1266066372002-2:2:1 with message: ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId = null, originalDestination = null, originalTransactionId = null, producerId = null, destination = null, transactionId = null, expiration = 0, timestamp = 0, arrival = 0, brokerInTime = 0, brokerOutTime = 0, correlationId = null, replyTo = null, persistent = false, type = null, priority = 0, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties = false, readOnlyBody = false, droppable = false, text = response}

        People

        • Assignee:
          Claus Ibsen
          Reporter:
          Claus Ibsen
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development