Re: Camel body content based routing with jsonpath on XML DSL (no java project, no pom)

2024-12-18 Thread ski n
last couple of year now. > > A recent requirement made me to investigate content based routing in Camel. > I worked out how I can do it based on header information with > 'simple'. That is working OK. > This is working fine in XML DSL without any further sett

Camel body content based routing with jsonpath on XML DSL (no java project, no pom)

2024-12-18 Thread Zsuzsanna Sovarschi
very simple Camel routes with a selector on message type defined in camel.xml which is then referenced from the activemq.xml. They are working perfectly for the last couple of year now. A recent requirement made me to investigate content based routing in Camel. I worked out how I can do it based

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

Content Based Routing Feasibility Q

2017-08-31 Thread MLVJ
I have a problem, and I think that Camel can solve it, but I would like to be sure! What I want to do is to write a generic handler, to catch web service requests, look in the header, at the "USER", then identify a preferred destination for that user according to a regularly-refreshed cache, and

Content Based Routing based on JSON Request Body

2016-10-17 Thread Debraj Manna
Hi I have a camel REST endpoint which receives a request of the form:- {"method" : "getHello"} Based on the value in the method field in the request body I want to route the request to different routes. So I tried something like this below:- from("jetty:http://localhost:/hello";).unmarshal(

Getting error Content Based Routing for the xml

2014-09-22 Thread vikrant
getting the xml message from the custom in process method and setting it in exchange.getIn().setBody(etlmsXml). I have also added convertBodyTo from(endpointuri) .process(new etlmsXmlProcess) .convertBodyTo(String.class,"UTF-8") Now for this message, I am trying to use C

Re: Content based routing

2014-01-27 Thread Claus Ibsen
l.apache.org/dynamic-router.html > > > -Original Message- > From: Muhzin [mailto:rmuh...@gmail.com] > Sent: Monday, January 27, 2014 2:51 PM > To: users@camel.apache.org > Subject: Content based routing > > Hi all, > > How can route my message which is a poj

RE: Content based routing

2014-01-27 Thread Ravindra.Godbole
@camel.apache.org Subject: Content based routing Hi all, How can route my message which is a pojo based on a specific attribute value of it? For eg , suppose that I have a have class A which has an attribute 'action' , I need to route my message based on the value of 'action' .

Content based routing

2014-01-27 Thread Muhzin
Hi all, How can route my message which is a pojo based on a specific attribute value of it? For eg , suppose that I have a have class A which has an attribute 'action' , I need to route my message based on the value of 'action' . -- BR Muhsin

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 .
:43 AM, madusanka wrote: > 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.

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

Re: Content Based Routing with Camel

2013-12-09 Thread James Carman
t will be available as of camel 2.13. Is there > a way to perform CBR for JSON payload in other versions of Apache Camel? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Content-Based-Routing-with-Camel-tp5744495.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Content Based Routing with Camel

2013-12-09 Thread madusanka
Hi, I know that JSONPath component will be available as of camel 2.13. Is there a way to perform CBR for JSON payload in other versions of Apache Camel? -- View this message in context: http://camel.465427.n5.nabble.com/Content-Based-Routing-with-Camel-tp5744495.html Sent from the Camel

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 wha

Content based routing with InOut pattern and exclusive reply queue

2013-06-20 Thread Tomas Potocky
Hi folks, I've found some strange behaviour using content based routing in camel. Can someone tell me what's wrong with following setup and why I get PersistentQueueReplyManager:86 - Reply received for unknown correlationID for route2 when using Exclusive queue for replies? If I use

Content-based routing with Expressions and Predicates

2013-04-01 Thread Chris Wolf
(I took the liberty to change the Subject since the message history has both my FTP issue and Prabu's routing issue - my fault, sorry) Prabu, I strongly recommend getting and reading Claus's book "Camel In Action", like Thomas Walzer suggested upon your first post. You also should be familiar wi

Re: Content based Routing

2013-01-03 Thread boday
an run Camel applications any number of ways (don't need to use ServiceMix)...there is is a great overview of the options here: http://download.progress.com/5331/open/adobe/prc/psc/091610_apache_camel_deployment/index.htm Padmalaya wrote > I need help in implementing content based

Re: Handling namespaces with content based routing using camel-activemq.

2011-03-18 Thread Claus Ibsen
On Fri, Mar 18, 2011 at 11:25 AM, Willem Jiang wrote: > Hi > > I don't think current camel spring configuration support the xpath with the > name space. > Yes it does. You can use namespaces with xpath in XML DSL. See the xpath wiki page http://camel.apache.org/xpath In fact you must use namespa

Re: Handling namespaces with content based routing using camel-activemq.

2011-03-18 Thread Willem Jiang
Hi I don't think current camel spring configuration support the xpath with the name space. You can take a look at Java DSL one from here[1] [1]https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xml/XPathNestedNamespaceTest.java Willem On 3/17/11 1

Re: Handling namespaces with content based routing using camel-activemq.

2011-03-17 Thread Ashwin Karpe
subsidiary) http://fusesource.com Blog: http://opensourceknowledge.blogspot.com - -- View this message in context: http://camel.465427.n5.nabble.com/Handling-namespaces-with-content-based-routing-using-camel-activemq-tp3788073p3892829.html Sent

Handling namespaces with content based routing using camel-activemq.

2011-03-16 Thread Tom Howe
Hi, first post here! We have an instance of apache-activemq running which includes camel. We are sending some messages to a queue called 'in' that look like this: http://www.blah/blah"; name="submit" > ... and http://www.blah/blah"; name="status" > ... We need to route the messages ba

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' >    

content based routing based on header value

2010-08-10 Thread Mark Webb
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'

Re: New to content based routing

2009-10-31 Thread Claus Ibsen
pache.org/http And see some of the examples and tutorials on using Camel http://camel.apache.org/examples.html http://camel.apache.org/tutorials.html > THanks > > -- > View this message in context: > http://old.nabble.com/New-to-content-based-routing-tp26135880p26135880.html >

New to content based routing

2009-10-30 Thread HNR
Is there a sample pgm that would help me to get data from the client and route it to two servlets that are deployed in tomcat. THanks -- View this message in context: http://old.nabble.com/New-to-content-based-routing-tp26135880p26135880.html Sent from the Camel - Users mailing list archive