RE: [External] Re: Content Based Routing Feasibility Q

2017-09-01 Thread Jens J Parappallil
Subject: [External] Re: Content Based Routing Feasibility Q I would suggest you to see camel-cxf examples. Maybe i got wrong but what you needed is like a web service's proxy. You may also take a look at http component or maybe mina component. On Thu, 31 Aug 2017 at 11:26, MLVJ wrote: >

Re: Content Based Routing Feasibility Q

2017-09-01 Thread Onder SEZGIN
I would suggest you to see camel-cxf examples. Maybe i got wrong but what you needed is like a web service's proxy. You may also take a look at http component or maybe mina component. On Thu, 31 Aug 2017 at 11:26, MLVJ wrote: > I have a problem, and I think that Camel can solve it, but I would

Re: Content based routing

2014-01-27 Thread Claus Ibsen
Hi Yeah or the recipient list http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Mon, Jan 27, 2014 at 11:01 AM, wrote: > You can use dynamic router feature of camel. Read the documentation carefully > as not returning null means it will loop infinitely. > > http://camel.apache.org/

RE: Content based routing

2014-01-27 Thread Ravindra.Godbole
You can use dynamic router feature of camel. Read the documentation carefully as not returning null means it will loop infinitely. http://camel.apache.org/dynamic-router.html -Original Message- From: Muhzin [mailto:rmuh...@gmail.com] Sent: Monday, January 27, 2014 2:51 PM To: users@came

Re: Content Based Routing with Camel

2013-12-09 Thread James Carman
He would need to use a Predicate for CBR. Either way, it'd be easy to do, as you pointed out, since it's just a library. :) Or, if the destination can be "calculated" based on something in your JSON (using an expression), you could do something like this: from(...).deserialize(...).recipientList

Re: Content Based Routing with Camel

2013-12-09 Thread Christian Posta
If you're set on JsonPath, you can do so in a POJO or processor as it's just a library: http://code.google.com/p/json-path/ On Mon, Dec 9, 2013 at 1:57 PM, Henryk Konsek wrote: > Hi guys, > >> Perhaps you can deserialize the object(s) first before doing CBR >> (using a simple expression)? > > Th

Re: Content Based Routing with Camel

2013-12-09 Thread Henryk Konsek
Hi guys, > Perhaps you can deserialize the object(s) first before doing CBR > (using a simple expression)? This is very good suggestion, James. To make it a little more concrete: from(...). unmarshal().json(JsonLibrary.Gson, Map.class). choice(). when().simple("${body[invoices][lates

Re: Content Based Routing with Camel

2013-12-09 Thread kraythe .
Easiest way is to deserialize with Jackson2 into a JSON Tree and then navigate the tree to get the info. Means you dont need a pojo or mapping but can still fetch the data without resortign to string parsing. I dont know how mature JSONPathc is anyway. We will see if it holds any benefit over going

Re: Content Based Routing with Camel

2013-12-09 Thread madusanka
I have to detect what type they are first and then route to the appropriate service provider. I was wondering if JSONPath is supported in early versions of Camel ? -- View this message in context: http://camel.465427.n5.nabble.com/Content-Based-Routing-with-Camel-tp5744495p5744508.html Sent fro

Re: Content Based Routing with Camel

2013-12-09 Thread James Carman
Perhaps you can deserialize the object(s) first before doing CBR (using a simple expression)? Or, do you have to detect what type they are first and then route to the appropriate deserializer? On Mon, Dec 9, 2013 at 3:15 AM, madusanka wrote: > Hi, > > I know that JSONPath component will be avail

Re: Content based routing with InOut pattern and exclusive reply queue

2013-06-20 Thread Claus Ibsen
Hi The reply queue is NOT exclusive. You use it 2 times for route1 and route2 in the content based router. On Thu, Jun 20, 2013 at 12:26 PM, Tomas Potocky wrote: > Hi folks, > I've found some strange behaviour using content based routing in camel. Can > someone tell me what's wrong with followi

Re: Content based Routing

2013-01-03 Thread boday
I suggest you start with some simple examples or books to get your head around how to use Camel. To your specific flow, see the following links... 1. see camel-file to proce

Re: content based routing based on header value

2010-08-12 Thread Mark Webb
I see that the latest MEAP of Camel In Action answers this question in the first page of Appendix A. On Tue, Aug 10, 2010 at 11:56 AM, Claus Ibsen wrote: > On Tue, Aug 10, 2010 at 5:42 PM, Mark Webb wrote: >> I am setting up a route in XML and want to send messages to a >> destination based on a

Re: content based routing based on header value

2010-08-10 Thread Claus Ibsen
On Tue, Aug 10, 2010 at 5:42 PM, Mark Webb wrote: > I am setting up a route in XML and want to send messages to a > destination based on a field in the header.  I have the following: > > >                 >                         >                                '${header.dest}' = 'stuff' >