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.

Reply via email to