On Fri, Feb 20, 2009 at 12:13 PM, Nicolas Bouillon <nico...@bouil.org> wrote: > I've created the JIRA issue CAMEL-1362 > https://issues.apache.org/activemq/browse/CAMEL-1362 > > In the meanwhile, do you have any workaround hint ? You can use the Synchronization hooks on the UnitOfWork
Then you need to route with a processor where you can add the hook from("mina").process(new Processor() { public void process(Exchange exchange) throws Exception { exchange.getUnitOfWork().addSynchronization(new MyMinaMaybeCloseSession()); } }).to(xxxx); And in the MyMinaMaybeCloseSession you have callbacks for onComplete, onFailure. Then you can check in the exchange if the body is that special stop command and then access the mina session and close it. > > On Fri, Feb 20, 2009 at 11:52, Claus Ibsen <claus.ib...@gmail.com> wrote: > >> Hi >> >> I dont think you currently can both CLOSE a session and return a >> response when sync=true. >> >> Could you file a JIRA request for this? >> http://camel.apache.org/support.html >> >> We could introduce some special header you can add to the Message so >> Camel knows that it should close the session when its finished writing >> the response. >> > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/