Hi

OnException should be before the "route stuff". So it should be

FROM
  ON EXCEPTION ... END
  ROUTE STUFF

Also Camel 2.2 is rather old. And mind that the quickfix component was
re-written in Camel 2.5 or there abouts by the quickfix project lead.
So in later Camel releases the camel-quickfix component is much
improved.




On Wed, Dec 21, 2011 at 6:18 PM, sso <s.soy...@laposte.net> wrote:
> Hello,
>
> I'm new in camel-quickfix I would like to catch a  event when my endpoint is
> disconecting.
> I tried to do this :
>
>                CamelContext c = (CamelContext)
> Application.getBean("camelContextSwiraServer");
>                c.addRoutes(new RouteBuilder() {
>                        public void configure() throws Exception {
>                                from(fileEndpointUri)
>                                .bean(FixService.class, "createFixMessage")
>                                .to("quickfix-server:quickfix/" + 
> terminalNumber + ".cfg")
>                                .onException(Exception.class)
>                                .maximumRedeliveries(0)
>                                .handled(true)
>                                .process(new ErrorProcessor())
>                                .stop();
>
>                                from("quickfix-server:quickfix/" + 
> terminalNumber + ".cfg")
>                                .bean(FixService.class, "parseFixMessage")
>                                .process(new ResponseProcessor())
>                                .onException(Exception.class)
>                                .maximumRedeliveries(0)
>                                .handled(true)
>                                .process(new ErrorProcessor())
>                                .stop();
>
>                                from("quickfix-server:quickfix/" + 
> terminalNumber +
> ".cfg").filter(header("EventCategory").isEqualTo(MsgType.LOGOUT))
>                                .bean(FixService.class, 
> "disconnectingMessage").stop();
>                        }
>                });
>
> But unfortenetly this doesn't work can any one help mz plz?
>
> Thx in advance.
>
> sso
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-quickfix-2-2-0-tp5092456p5092456.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
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/

Reply via email to