Re: Setting JMS ReplyTo

2010-09-03 Thread Claus Ibsen
On Fri, Sep 3, 2010 at 5:36 PM, kumaap wrote: > > Cheers Mate Code committed to trunk. Could you try it on your system? > -- > View this message in context: > http://camel.465427.n5.nabble.com/Setting-JMS-ReplyTo-tp2800345p2802410.html > Sent from the Camel - Users mailing list archive at Nabb

Re: Setting JMS ReplyTo

2010-09-03 Thread kumaap
Cheers Mate -- View this message in context: http://camel.465427.n5.nabble.com/Setting-JMS-ReplyTo-tp2800345p2802410.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Setting JMS ReplyTo

2010-09-03 Thread Claus Ibsen
On Fri, Sep 3, 2010 at 3:14 PM, kumaap wrote: > > I have run the test with Active MQ and it doesn't work . > > It doesnt matter about which JMS provider your using here. But im using > Websphere MQ. > > JMSReplyTo is not a JMS header property as such its is set explicitly with a > javax.jms.Destin

Re: Setting JMS ReplyTo

2010-09-03 Thread kumaap
I have run the test with Active MQ and it doesn't work . It doesnt matter about which JMS provider your using here. But im using Websphere MQ. JMSReplyTo is not a JMS header property as such its is set explicitly with a javax.jms.Destination object not a string. I don't know how you got your un

Re: Setting JMS ReplyTo

2010-09-03 Thread Claus Ibsen
On Fri, Sep 3, 2010 at 11:11 AM, kumaap wrote: > > Hi, > > I don't know how you got the unit test to work as its not running with camel > 2.4 . I can see why JMSReplyTo should be a destination object but the unit > test its a string. > > The JmsBinding.makeJmsMessage executes the appendJmsProperti

Re: Setting JMS ReplyTo

2010-09-03 Thread kumaap
Hi, I don't know how you got the unit test to work as its not running with camel 2.4 . I can see why JMSReplyTo should be a destination object but the unit test its a string. The JmsBinding.makeJmsMessage executes the appendJmsProperties " else if (headerName.equals("JMSReplyTo") && headerValue

Re: Setting JMS ReplyTo

2010-09-03 Thread Claus Ibsen
Ah okay You just want to send a fire and forget message but it should have the JMSReplyTo header set. Then see this unit test http://svn.apache.org/viewvc?rev=992224&view=rev On Thu, Sep 2, 2010 at 8:03 PM, kumaap wrote: > > It seems the in the JmsProducer  when processing InOnly it ignores th

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
It seems the in the JmsProducer when processing InOnly it ignores the replyTo property MessageCreator messageCreator = new MessageCreator() { public Message createMessage(Session session) throws JMSException { return endpoint.getBinding().makeJmsMessage(exchange, in,

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
I'm not going to be doing the request/replay i just want to set the value. -- View this message in context: http://camel.465427.n5.nabble.com/Setting-JMS-ReplyTo-tp2800345p2800855.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Setting JMS ReplyTo

2010-09-02 Thread Claus Ibsen
On Thu, Sep 2, 2010 at 5:13 PM, kumaap wrote: > > Hi Claus > > I don't think disableReplyTo property is working  either > >  public void configure() { >                from("direct:start").setHeader("test", > constant("test")).to("jms:F.PUB); >            } > > And i get > [ 2010-09-02 15:56:34,33

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
Hi Claus I don't think disableReplyTo property is working either public void configure() { from("direct:start").setHeader("test", constant("test")).to("jms:F.PUB); } And i get [ 2010-09-02 15:56:34,335 ][ DEBUG ][ org.apache.camel.component.jms.JmsProducer.proce

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
Ok ive go my unit test to work by changing sendBody to template.request("direct:start",new Processor() { public void process(Exchange exchange) throws Exception { exchange.getIn().setBody("Moon"); } }); But bellow is my realife problem , which i

Re: Setting JMS ReplyTo

2010-09-02 Thread Claus Ibsen
Just play with the working unit test and adapt it to your style, then you most likely is getting it to work. On Thu, Sep 2, 2010 at 1:52 PM, kumaap wrote: > > Hi Claus, > > Im looking through the unit test > JmsRequestReplyFixedReplyToInEndpointTest > > I can run and it works fine. > > But i ca

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
Hi Claus, Im looking through the unit test JmsRequestReplyFixedReplyToInEndpointTest I can run and it works fine. But i cant see my mistake. @Override protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { fro

Re: Setting JMS ReplyTo

2010-09-02 Thread Claus Ibsen
Check some of the unit tests in camel-jms On Thu, Sep 2, 2010 at 12:16 PM, kumaap wrote: > > Camel version 2.4 > > I'm trying to set the JMS reply To. But it seems to be ignoring the > property. > Ive been reading some posts but still cant get it to work. > > In my use case my route subscribes fr