Hi On the JMS endpoints you can specify the option jmsMessageType=Text to force Camel to send the javax.jms.Message as a TextMessage.
See the JMS wiki page http://camel.apache.org/jms On Wed, Dec 14, 2011 at 1:41 PM, focaldi <[email protected]> wrote: > Hi everybody, > > I m trying to convert Exchange message to TextMessage format. Beacuse the IX > Agent consume a JMS endpoind and it understands TextMessage format. > > I need to convert message to TextMessage format in jmsqueue. How can I > convert it? > > I can handle "JmsMessage" in P1 processor but I dont know what I should do. > Pls help me? Thanks > P1 processor > ------------------------------------- > Message inMsg = exchange.getOut(); > if (inMsg instanceof JmsMessage) { > JmsMessage jmsMessage = (JmsMessage) inMsg; > } > > My case is : > from(database) -->to(jmsqueue1) > > from(jmsqueue1) -->process(p1)-->to(jmsqueue2) > > to(jmsqueue2) --> IX_AGENT > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-can-I-convert-Exchange-message-to-TextMessage-tp5074350p5074350.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
