https://issues.apache.org/activemq/browse/CAMEL-1773
unfortunately I get the same behavior on M1
How did you progress Thomas ?


Claus Ibsen-2 wrote:
> 
> Hi Thomas
> 
> To help with this I would like you to create a simple unit test /
> route that you use the I can use as base for an unit test to look into
> this.
> Feel free to create a ticket in JIRA and attach your file there.
> 
> 
> On Thu, Jun 25, 2009 at 10:17 AM, Thomas Jäckle<maent...@gmail.com> wrote:
>>
>> Ok, here it is (still simplyfied):
>>
>> Camel side:
>> --
>> from("vm:someQueue")
>>  .process(new Processor() {
>>      public void process(Exchange exchange) throws Exception {
>>        // processing exchange.getIn() and filling "someMap"
>>        // ...
>>        Message out = exchange.getOut();
>>        out.setBody(someMap);
>>        out.setHeader(JmsConstants.JMS_REPLY_DESTINATION,
>> "myResponseQueue");
>>      }
>>    })
>>  .to("jms:queue:myRequestQueue");
>>
>> from("jms:queue:myResponseQueue").to("...");
>> // further processing
>> --
>>
>> JMS-Consumer side:
>> --
>> public class MyJMSConsumer implements MessageListener {
>>  private MessageProducer replyProducer;
>>  // ...
>>  public void onMessage(Message message) {
>>    // process incoming jms message ...
>>    MapMessage response = session.createMapMessage();
>>    response.setDouble("score", score);
>>    response.setJMSCorrelationID(message.getJMSCorrelationID());
>>    replyProducer.send(message.getJMSReplyTo(), response);
>>  }
>> }
>> --
>>
>> It worked in 2.0-M1, so I am sure that the JMSConsumer is correct. As I
>> said
>> .. I only had to add the
>> "response.setJMSCorrelationID(message.getJMSCorrelationID());" at the
>> JMS-Consumer side, because Camel ignored the JMS response without a
>> correlationID.
>>
>>
>> Claus Ibsen-2 wrote:
>>>
>>> Hi
>>> Can you provide a little sample with this issue. Its easier to dig into
>>> when
>>> I got more code.
>>> Its easier to look into when you have the "full view" of the code
>>> instead
>>> of
>>> small snippets.
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/JMSReplyTo-in-2.0-M2-tp24198106p24198941.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JMSReplyTo-in-2.0-M2-tp24198106p24259935.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to