Hi,

Your camel version is too old, can you try to use the latest released camel 2.8.3?

On Thu Dec 22 01:18:43 2011, sso 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.




--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang Weibo: willemjiang

Reply via email to