Hi The direct component only allow 1 route to consume from the same endpoint. So in your case you have 2 or more routes that are from the same direct endpoint.
On Wed, Mar 7, 2012 at 6:31 AM, Frank <[email protected]> wrote: > Hi Ashwin, > > I am getting the same error after I changed to template.requestBody(). I am > unable to figure it out. Could you help me? > > Exhausted after delivery attempt: 1 caught: > java.lang.IllegalArgumentException: Cannot add a 2nd consumer to the same > endpoint. Endpoint Endpoint[direct://level2] only allows one consumer. > java.lang.IllegalArgumentException: Cannot add a 2nd consumer to the same > endpoint. Endpoint Endpoint[direct://level2] only allows one consumer. > > Thanks, > Frank > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Sending-multiple-messages-in-Camel-tp5541723p5543220.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
