Sending payload from http to jms...Camel.
I am trying to have a camel route, which would accept a payload on a http endpoint and then write that payload to a JMS queue. The route that I have so far is below. But an empty message gets delivered to the jms queue. A message gets there, but it has no body. Heres the route: route from uri=jetty:http://0.0.0.0:8050/add/Customer/ inOnly uri=jms:queue:Q.Customer / /route Heres the payload that I'm sending into to '`http://0.0.0.0:8050/add/Customer`' endpoint: Customer xmlns=http://www.openapplications.org/9; xmlns:lw=http://www.org/9; NameJohn/Name GenderFemale/Gender /Customer Any inputs on why the message body is not being written to the jms queue? Thanks... -- View this message in context: http://camel.465427.n5.nabble.com/Sending-payload-from-http-to-jms-Camel-tp5750616.html Sent from the Camel - Users mailing list archive at Nabble.com.
Splitting list of elements in a message body..
Iam trying to write a camel route which would send different elements of a list to different queues. The message body would be a list with 2 xml's. For example: Cat NameCat1/Name /Cat, Dog NameDog1/Name /Dog Now, I need to send the 'Cat' part of the message i.e. CatNameCat1/Name/Cat part to queue1 and the 'Dog' part of xml i.e. DogNameDog1/Name/Dog to a different queue? This is the route that I have, but is not working: route from uri=jms:queue:InQueue / choice when simple${in.body} regex 'Cat'/simple to uri=jms:queue:CatQueue / /when when simple${in.body} regex 'Dog'/simple to uri=jms:queue:DogQueue / /when /choice /route Any ideas on what am i doing wrong here? -- View this message in context: http://camel.465427.n5.nabble.com/Splitting-list-of-elements-in-a-message-body-tp5750556.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: AW: Splitting list of elements in a message body..
Yes..there is a comma... The message that would be returned from a processor Call in the route would be like this: [Cat xmlns=http://www.openapplications.org/oagis/9; xmlns:lw=http://www.org/oagis/9; nameCat1/name /Cat, Dog xmlns=http://www.openapplications.org/oagis/9; xmlns:lw=http://www.org/oagis/9; nameDog1/name /Dog] -- View this message in context: http://camel.465427.n5.nabble.com/Splitting-list-of-elements-in-a-message-body-tp5750556p5750573.html Sent from the Camel - Users mailing list archive at Nabble.com.
Camel Succesful delivery acknowledgements..
I have been trying to come up with a camel route that would read from an activemq and write to Oracle AQ. However, when a message is written to Oracle-aq(all I care is succesfull delivery of the msg to Oracle aq), I have to write a successful message to another Active mq queue(something like message with id 41 has been sent to OracleAQ) Is there any Auto-acknowledge type of feature in camel that can be useful here? This is the basic route that i have that routes from active mq to oracle aq. route from uri=jms:queue:Q.Customer1/ setHeader headerName=prop simpleheader1Value/simple /setHeader to uri=oracleQueue:queue:Q.Customer2/ /route Would it be better to use a transaction and have below 2. steps in the same transaction, so that the second happens after only if the first happened successfully. 1. Writing a message to Oracleaq from active mq 2. If (1.) happens successfully, then write a message to activemq2 -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Succesful-delivery-acknowledgements-tp5749806.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel Succesful delivery acknowledgements..
Does Camel have any indicators that the message has been succesfully delivered to the consumer. As a producer, how do I know that message has been delivered, so that I can issue out succesful acknowledgements. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Succesful-delivery-acknowledgements-tp5749806p5749808.html Sent from the Camel - Users mailing list archive at Nabble.com.
Camel XPath....Parsing a part of message Body...
I have a simple flow that reads from an activemq1 and parses an id from the message and sends the id across to another activemq2. Here is an example of message that gets written to activemq1: Customer Order id123/id /Order Customer I need to parse out the id from the above message body and send the below message to activemq2: Order with id{123} has been queued This is the flow that I cameup with, but it writes the complete request xml to the queue, but not the message that I am looking for: from uri=jms:queue:Q.activemq1/ setBody xpath/Customer/Order/id/@value/text()/xpath /setBody to uri=jms:queue:Q.activemq2/ Anything wrong in the above -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XPath-Parsing-a-part-of-message-Body-tp5749823.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel Succesful delivery acknowledgements..
Hello, I remember reading somewhere that XA transactions are slow, overkill and not reliable. Do you think a regular transaction would do the job for me here. A single transaction which would cover the 2 to uri's. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Succesful-delivery-acknowledgements-tp5749806p5749815.html Sent from the Camel - Users mailing list archive at Nabble.com.
Sending a string response from a route...
Is it possible to send a response out from a route flow. For Example, in this below route, I would always like to send out a string response say, hi whenever the request comes from the uri mentioned.. route from uri=jetty:http://0.0.0.0:/camelServlet/abc?; / /route if possible, how do I do it? -- View this message in context: http://camel.465427.n5.nabble.com/Sending-a-string-response-from-a-route-tp5749258.html Sent from the Camel - Users mailing list archive at Nabble.com.