Re: Message selector example
http://www.pretechsol.com/2013/11/camel-selective-consumer-using-jms.html#.UnUWLxAVuPA -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5742545.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Message selector example
Its working. Changed exchange.getIn().setHeader(country, US); to exchange.getOut().setHeader(country, US); Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713959.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Message selector example
Awesome :) On Mon, Jun 4, 2012 at 10:42 AM, Deepthi deepthi...@gmail.com wrote: Its working. Changed exchange.getIn().setHeader(country, US); to exchange.getOut().setHeader(country, US); Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713959.html Sent from the Camel - Users mailing list archive at Nabble.com. -- -- Scott England-Sullivan -- FuseSource Web: http://www.fusesource.com Blog: http://sully6768.blogspot.com Twitter: sully6768
Message selector example
Hi, Can somebody please provide me with message selector example? Also can somebody provide an example how to name the headers while publishing the message on the queue and how to read that message using selector and header while consuming asap. Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Message selector example
Full details can be found here: http://camel.apache.org/jms.html. Review the section labeled Message Header Mapping. WRT how to name the message headers you have to follow standard JMS rules or Java naming conventions meaning: no dots or hyphens in the header name. Then set the header on the producer and the selector on the consumer. On Thu, May 31, 2012 at 3:21 PM, Deepthi deepthi...@gmail.com wrote: Hi, Can somebody please provide me with message selector example? Also can somebody provide an example how to name the headers while publishing the message on the queue and how to read that message using selector and header while consuming asap. Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805.html Sent from the Camel - Users mailing list archive at Nabble.com. -- -- Scott England-Sullivan -- FuseSource Web: http://www.fusesource.com Blog: http://sully6768.blogspot.com Twitter: sully6768
Re: Message selector example
Hi Sully, I did go through the link. Can I find an example somewhere which I can refer to how i use selectors and how do i compare the values etc. Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713808.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Message selector example
An example of how to use Java JMS message selectors? Start here: http://docs.oracle.com/javaee/5/tutorial/doc/bnceh.html#bncer On Thu, May 31, 2012 at 4:10 PM, Deepthi deepthi...@gmail.com wrote: Hi Sully, I did go through the link. Can I find an example somewhere which I can refer to how i use selectors and how do i compare the values etc. Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713808.html Sent from the Camel - Users mailing list archive at Nabble.com. -- -- Scott England-Sullivan -- FuseSource Web: http://www.fusesource.com Blog: http://sully6768.blogspot.com Twitter: sully6768
Re: Message selector example
In my bean I am setting the header as follows: exchange.getIn().setHeader(country, US); i am trying to filter the message using selector in following manner: camel:from uri=jms:queue:TestQueue6?selector=country='US' / I do not receive any message at all. Where am i going wrong here? -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713811.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Message selector example
K, that helps. :) Try adding camel:to uri=log:test.post.bean?showAll=true / after the bean processor and then camel:to uri=log:test.post.producer?showAll=true / after the JMS producer endpoint responsible for sending the bean created message on to TestQueue6. Then review your logging output and find the Exchanges that are logged from test.post.bean and test.post.producer. When you do, post them up here so we can take a look at them. On Thu, May 31, 2012 at 5:20 PM, Deepthi deepthi...@gmail.com wrote: In my bean I am setting the header as follows: exchange.getIn().setHeader(country, US); i am trying to filter the message using selector in following manner: camel:from uri=jms:queue:TestQueue6?selector=country='US' / I do not receive any message at all. Where am i going wrong here? -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713811.html Sent from the Camel - Users mailing list archive at Nabble.com. -- -- Scott England-Sullivan -- FuseSource Web: http://www.fusesource.com Blog: http://sully6768.blogspot.com Twitter: sully6768