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: Message Transformation for JSON

2013-12-09 Thread Cristiano Costantini
Probably it is not an optimal approach in terms of performances (how many transformations per second do you expect to perform?), but you can use xmljson (http://camel.apache.org/xmljson.html) data format to Unmarshal json to xml and use XSLT to transform, then Marshal back to Json. Check the

ISO8583

2013-12-09 Thread Manoranjitham G
Does camel support ISO8583,ISO20022,EBCDIC dataformats? -- View this message in context: http://camel.465427.n5.nabble.com/ISO8583-tp5744502.html Sent from the Camel - Users mailing list archive at Nabble.com.

Which expression language to use within Camel Splitter to split a CSV file?

2013-12-09 Thread megachucky
Here is my use case: I need to split a CSV file which contains orders. Parsing rules of this CSV are very simple: - Each order has several lines (no fix number) - Each order begins with one line (initiator): 111;222;dynamic content - Each order ends with two lines (terminator)

Re: Is it possible to change the Context body inside Dynamic router Slip ?

2013-12-09 Thread Claus Ibsen
No its not possible. On Mon, Dec 9, 2013 at 11:47 AM, harikrish07121991 harikrish07121...@gmail.com wrote: Hai everyone , i am using Dynamic Routing with help of slip function to dynamically create routes . with reference to this link : http://camel.apache.org/dynamic-router.html I want to

Re: ISO8583

2013-12-09 Thread James Carman
Camel can support any binary format you want. It doesn't have built-in support for these, though. On Mon, Dec 9, 2013 at 5:12 AM, Manoranjitham G manoranjitha...@polarisft.com wrote: Does camel support ISO8583,ISO20022,EBCDIC dataformats? -- View this message in context:

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 madusankabalasoor...@gmail.com wrote: Hi, I know that

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: ISO8583

2013-12-09 Thread Siano, Stephan
Well actually it depends on what you are trying to do with the data, where it comes from and what your JDK supports. If you are just transmitting binary data to somewhere else, the charset doesn't matter. If you e.g. need to convert binary data fetched e.g. from a file to something textual

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

Re: Is it possible to change the Context body inside Dynamic router Slip ?

2013-12-09 Thread kraythe .
And not desireable either. Let the endpoints do the change for you, not the slip itself. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39

Re: Which expression language to use within Camel Splitter to split a CSV file?

2013-12-09 Thread kraythe .
Probably best to write a custom data format to handle this. Parse the whole file into a list records, where each record starts with the data in the initiator and contains all data up to the next initiator. Writing data formats is not that tough. *Robert Simmons Jr. MSc. - Lead Java Architect @

Split hierarchical-flat file

2013-12-09 Thread lb
Hi all, I have a file which has the following content (fixed length record): Main Header record (starts with HR) Sub Header record (starts with SH) Data record (starts with DR) Sub Header record (starts with SH) Data record (starts with DR) Sub Header record (starts with SH) Data record (starts

Camel concurrentConsumers and Consume annotation

2013-12-09 Thread Robert Dare
Hello, I am using the org.apache.camel.Consume annotation to consume messages in Java from an ActiveMQ queue. I can configure the concurrentConsumers via the URI parameter in the annotation: @Consume(uri=activemq:queue:MyQueueName?concurrentConsumers=5) How can I externalize the

Re: Camel concurrentConsumers and Consume annotation

2013-12-09 Thread Claus Ibsen
Hi You ought to be able to use Camel's property placeholder http://camel.apache.org/using-propertyplaceholder.html On Mon, Dec 9, 2013 at 6:02 PM, Robert Dare robert.d...@gmail.com wrote: Hello, I am using the org.apache.camel.Consume annotation to consume messages in Java from an ActiveMQ

TimeOut - ExchangeTimedOutException

2013-12-09 Thread Syed
Hi, I created a dual drop for IBMMQ Q's, getting a msg from one Q and dropping into two Q's. I am getting timeout exception with the below configuration, can someone let me know where is it wrong ? *Spring DSL* bean id=ibmmq.q class=org.apache.camel.component.jms.JmsComponent

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().

File component problem on tomcat server

2013-12-09 Thread heriyanto
Hi everyone, I create a simple camel application that move file from folder input to another folder output. I integrate apache camel with spring mvc and deploy the application into tomcat server. Here are the simple route : route id=cashFlowStageDataRouter

camel log

2013-12-09 Thread MichaelAtSAG
All, I am trying to implement a simple route endpoint that will result in message stats logged every 10s, with an initial 60s delay and stats should be displayed even if there isn't any message traffic. --I followed this convention:-- http://camel.apache.org/log.html --I put together this

Re: camel log

2013-12-09 Thread MichaelAtSAG
I figured this out, had to set the level to INFO. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/camel-log-tp5744520p5744521.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File component problem on tomcat server

2013-12-09 Thread Christian Posta
are you seeing any exceptions in the log? related to permissions or something? additionally... maybe try a test with a absolute directory location instead of the relative location you're using... On Mon, Dec 9, 2013 at 2:46 PM, heriyanto heriy...@gmail.com wrote: Hi everyone, I create a simple

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 hekon...@gmail.com wrote: Hi guys, Perhaps you can deserialize the object(s) first before doing CBR (using a simple

Re: camel log

2013-12-09 Thread Christian Posta
whatGoesHere would be the logger name, as in org.apache.camel.processor Glad you figured out what you had issues with. On Mon, Dec 9, 2013 at 3:28 PM, MichaelAtSAG mebevilac...@gmail.com wrote: I figured this out, had to set the level to INFO. Thanks! -- View this message in context:

Re: Which expression language to use within Camel Splitter to split a CSV file?

2013-12-09 Thread Christian Posta
If you think it can be solved w/ a regex, you can use the simple expression language which supports regex http://camel.apache.org/simple.html On Mon, Dec 9, 2013 at 2:38 AM, megachucky megachu...@googlemail.com wrote: Here is my use case: I need to split a CSV file which contains orders.

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:

RE: File component problem on tomcat server

2013-12-09 Thread heriyanto
Hi, Thank you for the quick replies. Yes when i change the relative path become absolute path directory, my camel application work successfully, then i just have to correct where the relative path. Thank you for your help. Heriy -- View this message in context:

Query on PollingConsumer

2013-12-09 Thread Bijoy Chaudhury
Hi, I have a requirement to FTP a file to a directory but the details of the FTP route to be picked from a JMS message. So to implement the route I have used a processor which reads the message received from JMS component and then uses PollingConsumer Template to fetch the file from FTP location

Apache camel FTP issue

2013-12-09 Thread biplabsarkar99
Hi, I am trying to ftp a particular file from a directory to a ftp location, so I followed the examples provided in camel 2.12.1, which polls for any file in the target directory specified, and whenever it finds the file it uploads in the ftp location mentioned in the properties file. How ever