Hi, I think you can take a look at the camel-exmaple-pojo-message. It shows how can you use the a POJO to consume or produce the message.
[1]http://camel.apache.org/pojo-messaging-example.html On Wed Nov 30 15:41:08 2011, focaldi wrote:
Hi, I want to define a JMS queue messagelistener bean. I have a MessageListenerForAgentControl class that implements MessageListener interface and I override "onMessage" method. After all I added to a route like below : route = route.bean(MessageListenerForAgentControl.class); But when I added this line, my route is not working... I want to add some business logic when a jms message came to a queue...How can I do that? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-define-JMS-Queue-MessageListener-Bean-tp5034816p5034816.html Sent from the Camel - Users mailing list archive at Nabble.com.
-- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang
