camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-1362) Close Mina session from server side
Date Fri, 20 Feb 2009 15:11:59 GMT

     [ 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.


Mime
View raw message