RE: Exception from child route not caught in parent onException

2011-09-07 Thread Damian Harvey
Sorry should have mentioned that the parent and child route are in different RouteBuilder classes - ie. not in the same configure() Thanks, Damian. -Original Message- From: Damian Harvey [mailto:damian.har...@aon.com] Sent: Thursday, 8 September 2011 12:04 PM To: users@camel.apache.org

Re: unmarshal(CsvDataFormat). different behavior for one or multiples lines.

2011-09-07 Thread Claus Ibsen
On Wed, Sep 7, 2011 at 4:57 PM, dportabella wrote: > unmarshal(CsvDataFormat) produces a List>, > however, it the CSV file has only one line, it produces List instead > of List>. > > We don't know in advance how many lines the CSV file will have, > that could be zero, one

Exception from child route not caught in parent onException

2011-09-07 Thread Damian Harvey
I have a route("parent route") with a global onException() method that contains an Error Processor(). I can see that this is hit when an error is generated from within this route. I have a route("child route") that has no onException(). It is called by the parent route. It throws an exception (

Re: How obtain a "serial" behaviour from a route?

2011-09-07 Thread boday
just set the route to use a single consumer thread...like this from("activemq:queue:inbound?concurrentConsumers=1&maxConcurrentConsumers=1").process(...); Alberto-2 wrote: > > Hi, > > I have a route that consumes messages from a queue. This route is > transacted because write to a database cal

How obtain a "serial" behaviour from a route?

2011-09-07 Thread Alberto
Hi, I have a route that consumes messages from a queue. This route is transacted because write to a database calling a bean. I have to be sure that the messages are not consumed in parallel way but one by one on completion of the route. I tried using a RoutePolicy, stopping the consumer in onExc

Re: unmarshal(CsvDataFormat). different behavior for one or multiples lines.

2011-09-07 Thread Filippo Balicchia
Hello, you can use Camel’s Bindy data format where from type InputStream you have as result List> during the operation of unmarshall Object is you business dataObject --Filippo 2011/9/7 dportabella : > unmarshal(CsvDataFormat) produces a List>, > however, it the CSV file has only

Re: Missing properties on exception

2011-09-07 Thread pkleczka
Hi Willem I have included part of the Camel XML and my ExceptionResponse class below. One of the routes works as expected and one of them does not. Further debuging shows that the one that works gets a org.apache.camel.component.jms.JmsMessage And the one that is not working is getting a org.ap

unmarshal(CsvDataFormat). different behavior for one or multiples lines.

2011-09-07 Thread dportabella
unmarshal(CsvDataFormat) produces a List>, however, it the CSV file has only one line, it produces List instead of List>. We don't know in advance how many lines the CSV file will have, that could be zero, one, or more than one, and we should expect to receive always a Li

Re: EJB Component JNDI lookup problems

2011-09-07 Thread Peter Thygesen
In this little test the camel route (web project) is part of my EAR project. After a little digging it turned out that it had something to do with security on Glassfish. I fixed it (quick and dirty) by annotating the EJB bean with @PermitAll I then added a user named "camel" and finally added "su

Re: Quartz stateful job routes not recreated on server restart

2011-09-07 Thread Cédric Pineau
I think the problem is that we don't use static builders but creates our routes dynamically. The quartz component fires events correctly : [DEBUG] simpl.SimpleJobFactory Producing instance of Job 'DEFAULT.quartz-endpoint20', class=org.apache.camel.component.quartz.StatefulCamelJob [DEBUG] core.Job

Re: Quartz stateful job routes not recreated on server restart

2011-09-07 Thread Cédric Pineau
Hi Willem. I'm using camel 2.8.0 My quartz settings are as follow : and # org.quartz.scheduler.instanceName = BabelScheduler org.quartz.scheduler.instanceId = AUTO #=