Re: RouteBuilder: Problems with onException and id

2009-10-29 Thread Claus Ibsen
On Thu, Oct 29, 2009 at 10:30 AM, DRy wrote: > > Hi, > > if I place .onException-part below .id() and .transacted() I got the same > problem. But if I place the .onException-part between .id() and > .transacted() it work's fine! The exception is handled and the id is set! > > So, setting the route

Re: RouteBuilder: Problems with onException and id

2009-10-29 Thread DRy
Hi, if I place .onException-part below .id() and .transacted() I got the same problem. But if I place the .onException-part between .id() and .transacted() it work's fine! The exception is handled and the id is set! So, setting the route-id work's for route-specific onException (in same cases).

Re: RouteBuilder: Problems with onException and id

2009-10-26 Thread DulmerLucsly
I created a JIRA for the id problem https://issues.apache.org/activemq/browse/CAMEL-2109 What still bothers me is the last sentence. When I rebuild the route and move .id() and .transacted() before onException public void configure() { from("jms:fileIn?transacted=true") .id("fileMapping") .t

Re: RouteBuilder: Problems with onException and id

2009-10-26 Thread Claus Ibsen
On Mon, Oct 26, 2009 at 9:20 AM, DRy wrote: > > Hi, > > having a user defined id is very important if you plan to use JMX-based > administration (done by non-developers "dummies") for your application (as > I/we do). We must be able to identify and start/stop routes via call to JMX > or JConsole.

Re: RouteBuilder: Problems with onException and id

2009-10-26 Thread DRy
Hi, having a user defined id is very important if you plan to use JMX-based administration (done by non-developers "dummies") for your application (as I/we do). We must be able to identify and start/stop routes via call to JMX or JConsole. I would prefer the "route(...)" solution ... but does t

Re: RouteBuilder: Problems with onException and id

2009-10-23 Thread Claus Ibsen
On Fri, Oct 23, 2009 at 1:55 PM, DulmerLucsly wrote: > > Hi erverybody, > > i have a little problem with exceptionhandling. > Since i'm new to activeMq/Camel sorry if the question is trivial... > > I try to build a route with java DSL. My route looks like this: > > > public void configure() {

RouteBuilder: Problems with onException and id

2009-10-23 Thread DulmerLucsly
Hi erverybody, i have a little problem with exceptionhandling. Since i'm new to activeMq/Camel sorry if the question is trivial... I try to build a route with java DSL. My route looks like this: public void configure() { from("jms:fileIn?transacted=true") .onException(UnmarshalExcepti