[
https://issues.apache.org/activemq/browse/CAMEL-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-1362:
-------------------------------
Fix Version/s: 1.6.1
2.0.0
Assignee: Claus Ibsen
> Close Mina session from server side
> -----------------------------------
>
> Key: CAMEL-1362
> URL: https://issues.apache.org/activemq/browse/CAMEL-1362
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-mina
> Affects Versions: 1.5.0
> Reporter: Nicolas Bouillon
> Assignee: Claus Ibsen
> Fix For: 2.0.0, 1.6.1
>
>
> Mina endpoint as a server could be closed as the initiative of the server.
> Read life scenario (FTP example) :
> client opens connection to server
> C:login foo
> S:welcome foo
> C:logout
> S:bye
> server closes the connection
> For now, in org.apache.camel.Processor, the only ways to close connection is
> to call
> ((MinaExchange) exchange).getSession().close();
> but if a exchange out body has been specified, it raises an exception,
> because the session is already closed.
> or to do
> exchange.getOut().setBody(null); // raises a WARNING : Can not write body
> since its null, closing session
> Then, there is no way to send a "BYE" message just before closing the
> connection of the client.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.