You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/02/15 18:07:33 UTC

[jira] Created: (CAMEL-2470) camel-jms - Look into issue with temporary queue being sent to another temp queue

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

                 Key: CAMEL-2470
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2470
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-jms
    Affects Versions: 2.1.0
            Reporter: Claus Ibsen


See nabble
http://old.nabble.com/Attemp-to-send-message-to-activemq-temporary-queue-using-producerTemplate%3A-InvalidMetadataException-ts27520096.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-2470) camel-jms - Look into issue with temporary queue being sent to another temp queue

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-2470:
----------------------------------

    Assignee: Claus Ibsen

> camel-jms - Look into issue with temporary queue being sent to another temp queue
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2470
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2470
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>         Attachments: Test.java
>
>
> See nabble
> http://old.nabble.com/Attemp-to-send-message-to-activemq-temporary-queue-using-producerTemplate%3A-InvalidMetadataException-ts27520096.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2470) camel-jms - Look into issue with temporary queue being sent to another temp queue

Posted by "Aaron Riekenberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Riekenberg updated CAMEL-2470:
------------------------------------

    Attachment: Test.java

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}


> camel-jms - Look into issue with temporary queue being sent to another temp queue
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2470
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2470
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>         Attachments: Test.java
>
>
> See nabble
> http://old.nabble.com/Attemp-to-send-message-to-activemq-temporary-queue-using-producerTemplate%3A-InvalidMetadataException-ts27520096.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2470) camel-jms - Look into issue with temporary queue being sent to another temp queue

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59579#action_59579 ] 

Claus Ibsen commented on CAMEL-2470:
------------------------------------

@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.

> camel-jms - Look into issue with temporary queue being sent to another temp queue
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2470
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2470
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>         Attachments: Test.java
>
>
> See nabble
> http://old.nabble.com/Attemp-to-send-message-to-activemq-temporary-queue-using-producerTemplate%3A-InvalidMetadataException-ts27520096.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2470) camel-jms - Look into issue with temporary queue being sent to another temp queue

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2470.
--------------------------------

    Fix Version/s: 2.4.0
       Resolution: Working as Designed

trunk: 949117.

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

> camel-jms - Look into issue with temporary queue being sent to another temp queue
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2470
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2470
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>         Attachments: Test.java
>
>
> See nabble
> http://old.nabble.com/Attemp-to-send-message-to-activemq-temporary-queue-using-producerTemplate%3A-InvalidMetadataException-ts27520096.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.