Re: end() method in a route

2009-06-15 Thread Claus Ibsen
f we should force a begin DSL for the few >> EIP types that have nested routes, >> to easier pair begin / end and have better errors if missing. >> >> In Spring XML you have the XML tags start/end tag for that. So that is >> really an area where the XML is better than

Re: end() method in a route

2009-06-10 Thread Hadrian Zbarcea
. In Spring XML you have the XML tags start/end tag for that. So that is really an area where the XML is better than Java DSL. Roman 2009/6/10 Claus Ibsen : On Wed, Jun 10, 2009 at 1:09 PM, Peter Maas wrote: Hi, I wondered what the purpose of the 'end' method in a route is. I

Re: end() method in a route

2009-06-10 Thread Claus Ibsen
e: >>> Hi, >>> >>> I wondered what the purpose of the 'end' method in a route is. I sort of >>> expected it to be a terminator for dead-end routes. But that doesn't seem to >>> be the case. >>> >>> If I do something lik

Re: end() method in a route

2009-06-10 Thread Roman Kalukiewicz
BTW The message in the Exception could be more clear. It is not obvious what "Root node with no active block" is ;) Roman 2009/6/10 Claus Ibsen : > On Wed, Jun 10, 2009 at 1:09 PM, Peter Maas wrote: >> Hi, >> >> I wondered what the purpose of the 'end' me

Re: end() method in a route

2009-06-10 Thread Claus Ibsen
On Wed, Jun 10, 2009 at 1:09 PM, Peter Maas wrote: > Hi, > > I wondered what the purpose of the 'end' method in a route is. I sort of > expected it to be a terminator for dead-end routes. But that doesn't seem to > be the case. > > If I do somethi

end() method in a route

2009-06-10 Thread Peter Maas
Hi, I wondered what the purpose of the 'end' method in a route is. I sort of expected it to be a terminator for dead-end routes. But that doesn't seem to be the case. If I do something like this: from("direct:start") .process(new Processor(){