[
https://issues.apache.org/activemq/browse/CAMEL-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47348#action_47348
]
Claus Ibsen commented on CAMEL-1075:
------------------------------------
> Re: #3 it would be useful if Camel could expose a listener and the send
> messages to the client once the connection is established.
See the route above with the Spring DSL (XML). What do you mean with *once the
connection is established*? If you need more control of the listener you can
use plain Apahca Mina that gives your plenty of options.
Re: #4 it would be useful if Camel could connect to a server and receive
messages from the server.
Such as this sample below where we send a request to the externalserver on TCP
port 1234 with the text "Hello World" and waits for a response.
{code}
Object out =
producerTemplate.requestBody("mina:tcp://externalserver:1234?sync=true&textline=true",
"Hello World");
System.out.println(out);
{code}
And the out is the response from the server such as "Bye World"
See the mina documentation at:
http://activemq.apache.org/camel/mina.html
And then try for yourself, it's about time you started "asking the computer"
and get some hands on experience. Camel is very fast for rapid prototyping.
> mina tcp: support for asyncronous InOut endpoint.
> -------------------------------------------------
>
> Key: CAMEL-1075
> URL: https://issues.apache.org/activemq/browse/CAMEL-1075
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-mina
> Affects Versions: 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0
> Environment: All.
> Reporter: Jeff Vienneau
>
> Mina Component does not support async InOut connections.
> Many applications require two way or out only async tcp connections this is
> not supported.
> See a more full discussion on this here:
> http://www.nabble.com/Can-mina::tcp-do-asyncronous-bidirectional-messages--tc20431804s22882.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.