I tried that, stil the same.
--- On Mon, 10/3/11, Claus Ibsen <claus.ib...@gmail.com> wrote: > From: Claus Ibsen <claus.ib...@gmail.com> > Subject: Re: doTry, doCatch and recipientList > To: users@camel.apache.org > Date: Monday, October 3, 2011, 2:37 PM > On Sun, Oct 2, 2011 at 6:10 PM, Pham > Ngoc Hai <pngoc...@yahoo.com> > wrote: > > I'm using Camel 2.2.0-fuse-02-00 in Fure SMX. > > What I want is to catch any exception when sending to > the recipientList, something like: > > > > from("...") > > .doTry() > > .recipientList(header(..)) > > .doCatch(Exception.class) > > .to(..) > > .end() > > > > But Eclipse does not allow me to do .doCatch(..) after > .recipientList(..) > > What I can do is to put a route scope onException > after from(..) but what is the proper way of handling > exception in recipientList? > > > > Can you try adding .end() after the recipientList(xxx) > > > Regards, > > Ngoc Hai > > > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: cib...@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ >