Hi,

i want to solve the following scenario (for a given server protocol) with
Camel and MINA :

* a client should connect to a server WITHOUT sending any data to the server
* this client should then only asynchronously read data from the server
converting it to messages (using a codec) 

I expected the following route to work :

from("mina:tcp://remoteServer:port?codec=...").to("log:test?level=INFO")

But i will get only an exception

Caused by: java.net.BindException: Cannot assign requested address: bind

The reason might be, that from("mina:") seems to always use an IoAcceptor
and this is, of course, not possible on a remote address. On MINA an
IoConnector has to be used with async receive.

So how can i setup this requirement (without writing my own endpoint ) ?

Thx for help


-- 
View this message in context: 
http://www.nabble.com/How-to-receive-async-Messages-on-a-MINA-client---tp17847383s22882p17847383.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to