How to close Mina session ?

2009-02-20 Thread Nicolas Bouillon
Hi, I'm new to Apache Camel and Mina. I'm writing a simple tcp sever and i'm facing a problem : i don't know how to close a Mina Endpoint Session. I use Camel 1.5.0 (available at maven official repository) The workflow is : the client send a Logout command, then the server says Bye and the

Re: How to close Mina session ?

2009-02-20 Thread Nicolas Bouillon
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 ? 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

Re: How to close Mina session ?

2009-02-20 Thread Nicolas Bouillon
Claus, Thanks for the tip. Howerver, it dones't seem to work. I have added the following code at the end of my process method : // add a hook to close the session after the exchange exchange.getUnitOfWork().addSynchronization(new Synchronization() { @Override

Re: How to close Mina session ?

2009-02-20 Thread Nicolas Bouillon
, 2009 at 1:52 PM, Nicolas Bouillon nico...@bouil.org wrote: Claus, Thanks for the tip. Howerver, it dones't seem to work. I have added the following code at the end of my process method : // add a hook to close the session after the exchange exchange.getUnitOfWork

Re: How to close Mina session ?

2009-02-23 Thread Nicolas Bouillon
will report if something goes wrong. Thanks Nicolas. On Fri, Feb 20, 2009 at 18:28, Claus Ibsen claus.ib...@gmail.com wrote: On Fri, Feb 20, 2009 at 5:12 PM, Nicolas Bouillon nico...@bouil.org wrote: Thank you very much for the patch, and for the velocity ! You are welcome. Thanks

Re: How to close Mina session ?

2009-02-25 Thread Nicolas Bouillon
wrote: On Tue, Feb 24, 2009 at 8:12 AM, Nicolas Bouillon nico...@bouil.org wrote: Hello, I've checkouted last friday the lastest SVN version of 1.6 branch, and compiled camel-core and camel-mina (i don't success compiling whole camel parts), and installed to my local maven repository

MinaConfiguration codec property

2009-03-05 Thread Nicolas Bouillon
Hi, i've got an error when trying to create my mina endpoint with spring dsl : bean id=myCodec class=com.example.MyProtocolCodecFactory /bean bean id=myMinaFactory class=org.apache.camel.component.mina.MinaComponent/ bean id=myMinaEndpoint

Re: MinaConfiguration codec property

2009-03-05 Thread Nicolas Bouillon
at 9:55 AM, Nicolas Bouillon nico...@bouil.org wrote: Hi, i've got an error when trying to create my mina endpoint with spring dsl :        bean id=myCodec class=com.example.MyProtocolCodecFactory        /bean        bean id=myMinaFactory class=org.apache.camel.component.mina.MinaComponent

Re: MinaConfiguration codec property

2009-03-05 Thread Nicolas Bouillon
it. On Thu, Mar 5, 2009 at 10:11 AM, Nicolas Bouillon nico...@bouil.org wrote: I've already tried that. But the codec property IS a string property, and then i got the following error : Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type

Re: MinaConfiguration codec property

2009-03-05 Thread Nicolas Bouillon
of the camel context under the bean id=myMinaFactory ... to let the myMinaFactory hold the reference of camelContext. Willem Nicolas Bouillon wrote: Hi, i've got an error when trying to create my mina endpoint with spring dsl :       bean id=myCodec class=com.example.MyProtocolCodecFactory

Odd Mina endpoint use

2010-03-12 Thread Nicolas Bouillon
Hello, I have a odd Camel Mina endpoint scenario than I don't know how to do, or even if it is possible. I would like to have a TCP server : client can send request at any time, and server can initiate at any time a message to the client. As far i know, we can only do with Camel-Mina a request

Re: Odd Mina endpoint use

2010-03-12 Thread Nicolas Bouillon
Claus Ibsen a écrit : On Fri, Mar 12, 2010 at 2:09 PM, Nicolas Bouillon nico...@bouil.org wrote: Hello, I have a odd Camel Mina endpoint scenario than I don't know how to do, or even if it is possible. I would like to have a TCP server : client can send request at any time, and server can

Component to send message to a external program as stdin

2010-03-18 Thread Nicolas Bouillon
Hello, I'm searching the following feature : route from uri=direct:in / to uri=exec:/usr/bin/wc?params=-l / /route The purpose is to send the message as the standard input of the program /usr/bin/wc -l and to get the standard output of the program as the response message. Does that exists