Re: Exceptions when aggregating messages

2013-07-11 Thread cristisor
Hello and thank you for your reply. This is the code for aggregating the whole camel message: class ObjectsAggregationStrategy implements AggregationStrategy { final Logger logger = Logger.getLogger(ObjectsAggregationStrategy.class); @SuppressWarnings("unchecked") @O

Re: Using pre-allocated Exchange with Proxy

2013-07-11 Thread Tim Jones
Hi Lars, did you come up with a solution for this problem? I am also interested in being able to add additional message headers to the Exchange while using a ProxyBuilder. Regards, Tim -- View this message in context: http://camel.465427.n5.nabble.com/Using-pre-allocated-Exchange-with-Proxy

Re: Using Bindy for multiple record types in the same file

2013-07-11 Thread Willem jiang
I think you can split the file and routing the lines to different bindy data format base on the first 2 character. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.b

Accessing a local declared hashmap variable in a route

2013-07-11 Thread clipod
Hi, I have a camel route with a choice block. I want to use a hashmap inside a when condition. To be more precise I would like to know if there is a way to use the "containsKey" function inside when. Is there a way to handle this. I can actually create a processor and define the behaviour but I w

Re: Camel Test Hierarchy is inconsistent

2013-07-11 Thread Christian Müller
cmueller$ mvn dependency:tree [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Camel :: Test 2.11.0 [INFO] [INFO] [INFO] --- maven-dependenc

Re: Exceptions when aggregating messages

2013-07-11 Thread Christian Posta
Post your code if you could, and I can help take a look. On Thu, Jul 11, 2013 at 7:42 AM, cristisor wrote: > Hello, > > I'm trying to aggregate a bunch of messages, each containing a String as > body, the In message from each exchange that comes to the aggregator, so > that I can send only one

Using Bindy for multiple record types in the same file

2013-07-11 Thread rodrickmusser
I am wondering if Bindy can be used in the following scenario: The file format I am working with is fixed length. The first two characters indicate the record type. For example, "01" indicates an order record, "02" indicates a customer record. If the record is an order record, characters 2-11 a

Re: Mocking consumer endpoints

2013-07-11 Thread Claus Ibsen
No there is not. On Mon, Jul 1, 2013 at 6:55 PM, Bilgin Ibryam wrote: > Hi, > > with CamelTestSupport I can use isMockEndpointsAndSkip method to mock > existing endpoints, but for mocking the consumer endpoint I still have to > use AdviceWithRouteBuilder. > > Is there a method in CamelTestSupport

Re: doneFileName in different Directory Possibility

2013-07-11 Thread Claus Ibsen
Hi If you see the docs you can find your answer http://camel.apache.org/file2 On Thu, Jul 11, 2013 at 6:31 PM, wrote: > Hi, > Please advise if we have a option to look for doneFileName in the different > directory than the Original File Name? > > We have a requirement to look for the Ready fil

doneFileName in different Directory Possibility

2013-07-11 Thread ganeshkumar.kanagavel
Hi, Please advise if we have a option to look for doneFileName in the different directory than the Original File Name? We have a requirement to look for the Ready file in a directory and pick up the data file from a directory. Thanks Ganesh ___ This

RE: Bindy Date Pattern Error

2013-07-11 Thread ganeshkumar.kanagavel
Hi, We are using camel version 2.11 Our data format is in the format of YYMMDD , Unmarshalling is failing if we use java.sql.date but works with java.util.date. But java.util.date is not compliant with sql server database insert, so we need to add some conversion logic in the get method of the

Re: Netty-http

2013-07-11 Thread Nico Sommi
Ah ok, I read the component page but not I was not aware of the current camel release. Thank you! Nico Sommi Por favor considere el medio ambiente antes de imprimir este correo. Please consider the environment before printing this email. 2013/7/11 Claus Ibsen > Its a new component in the upcom

Re: Netty-http

2013-07-11 Thread Claus Ibsen
Its a new component in the upcoming Camel 2.12.0 release. So the answer is that it's not been released yet. Its also noted on its documentation page in the top http://camel.apache.org/netty-http Each component lists in which version they were added. On Thu, Jul 11, 2013 at 6:06 PM, Nico Sommi w

Netty-http

2013-07-11 Thread Nico Sommi
Hello, this is a basic question but I need to check it before doing it, Does anybody know why the camel-netty-http component isn't uploaded on the maven repo? At least I cannot find it... even searching for "camel-netty-http-2.6.0.jar" (for example) in google Here is the camel archifact root on one

Re: CSV files processing

2013-07-11 Thread gquintana
XPath is the language to walk through the XML Dom Tree. Either you treat the file as a String and use String operations ( Simple as contains and regex operations). Or you treat the file as Java object tree (after unmarshalling) and walk through the Java objec

Re: Is onFinally() compulsory after doCatch()?

2013-07-11 Thread Claus Ibsen
Good idea, I updated the doc page with a tip about the end. On Wed, Jul 3, 2013 at 6:01 AM, Tarun Kumar wrote: > Thanks Claus. This is not mentioned in > http://camel.apache.org/try-catch-finally.html. I think it will be great if > this can be added to that page. It will really help beginners lik

Re: Extract the name of the Method from a Bean invokation.

2013-07-11 Thread Cristiano Costantini
Hi Claus, thanks again, yes I understand the problem, and I agree that the Simple language should be simple ! While for my specific case, I've found that it exists an "is" operator in simple language to test instanceof : ${in.header.type} is 'java.lang.String' I can use it to check if the body i

Exceptions when aggregating messages

2013-07-11 Thread cristisor
Hello, I'm trying to aggregate a bunch of messages, each containing a String as body, the In message from each exchange that comes to the aggregator, so that I can send only one exchange containing the list of strings to the next route in the end. If I set the body as a List the send operation fa

Re: Extract the name of the Method from a Bean invokation.

2013-07-11 Thread Claus Ibsen
Hi Ah yeah the null safe doesn't apply for methods not found. I am not sure if this is a good idea to add support for that. As if you have a typo in the method name, then the null safe will ignore that also. And adding more stuff to the syntax would just confuse even more, eg For example with a

Re: CSV files processing

2013-07-11 Thread Joe San
The problem is that I cannot rely on that file name. I have to rely on the content. The first line in the CSV file will always contain what is being exported with the field names. This set of field names are finite. I can of course hard code that comma seperated field names in a string and compare

Re: CamelTestSupport Import

2013-07-11 Thread Bovas
Thanks for your answer Wiliem yeah I have imported camel-core and camel-context, JUnit 4 library but I found my error, I imported a library which was in conflict with other. - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-Import-t