camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sso <s.soy...@laposte.net>
Subject camel-quickfix-2.2.0
Date Wed, 21 Dec 2011 17:18:43 GMT
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.

Mime
View raw message