You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Nicolas Bouillon (JIRA)" <ji...@apache.org> on 2009/02/20 12:11:59 UTC
[jira] Created: (CAMEL-1362) Close Mina session from server side
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
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.
[jira] Resolved: (CAMEL-1362) Close Mina session from server side
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1362.
--------------------------------
Resolution: Fixed
trunk: Committed revision 746269.
1.x: Committed revision 746271.
See updated wiki page for mina component how to use.
> 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.
[jira] Updated: (CAMEL-1362) Close Mina session from server side
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.