You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ggalka <gr...@gmail.com> on 2013/01/10 11:59:46 UTC

Re: How to build an outgoing tcp connection gateway that consumes messages?

Hi,

what do you think, what would be the best/quickest way to implement tcp
client message consumer in current Camel version ?

Best regards,
Grzegorz



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-build-an-outgoing-tcp-connection-gateway-that-consumes-messages-tp5724102p5725231.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to build an outgoing tcp connection gateway that consumes messages?

Posted by Andrea Tarocchi <an...@gmail.com>.
Sorry I missed the Claus Ibsen's post completely.


On Mon, Jan 14, 2013 at 2:12 PM, ggalka <gr...@gmail.com> wrote:

> Hi Andrea,
> you haven't understood me.
> Using MINA uri in from() endpoint causes creation of TCP socket server. But
> I need to work as tcp client in order to consume messages. This is not
> standard use case, but some applications uses such mode. Please look at
> first post and response from Claus Ibsen-2, who explains that both MINA and
> NETTY don't have such functionality.
>
> Best regards,
> Grzegorz
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-build-an-outgoing-tcp-connection-gateway-that-consumes-messages-tp5724102p5725537.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
"In a world without walls and fences who needs Windows and Gates?"

Re: How to build an outgoing tcp connection gateway that consumes messages?

Posted by ggalka <gr...@gmail.com>.
Hi Andrea,
you haven't understood me.
Using MINA uri in from() endpoint causes creation of TCP socket server. But
I need to work as tcp client in order to consume messages. This is not
standard use case, but some applications uses such mode. Please look at
first post and response from Claus Ibsen-2, who explains that both MINA and
NETTY don't have such functionality.

Best regards,
Grzegorz



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-build-an-outgoing-tcp-connection-gateway-that-consumes-messages-tp5724102p5725537.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to build an outgoing tcp connection gateway that consumes messages?

Posted by Andrea Tarocchi <an...@gmail.com>.
I think that camel-mina works also as a producer ( e.g. in a .to(...) )

Another option could be camel-netty component:
http://camel.apache.org/netty.html

Andrea.


On Thu, Jan 10, 2013 at 1:34 PM, ggalka <gr...@gmail.com> wrote:

> camel-mina for consuming messages (from(...)) uses tcp server connection
> (acts as a listener). I need to consume messages using client connection.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-build-an-outgoing-tcp-connection-gateway-that-consumes-messages-tp5724102p5725261.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
"In a world without walls and fences who needs Windows and Gates?"

Re: How to build an outgoing tcp connection gateway that consumes messages?

Posted by ggalka <gr...@gmail.com>.
camel-mina for consuming messages (from(...)) uses tcp server connection
(acts as a listener). I need to consume messages using client connection.



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-build-an-outgoing-tcp-connection-gateway-that-consumes-messages-tp5724102p5725261.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to build an outgoing tcp connection gateway that consumes messages?

Posted by Andrea Tarocchi <an...@gmail.com>.
One option is using camel-mina component: http://camel.apache.org/mina.html
andr, if necessary, writing your own custom codec.


On Thu, Jan 10, 2013 at 11:59 AM, ggalka <gr...@gmail.com> wrote:

> Hi,
>
> what do you think, what would be the best/quickest way to implement tcp
> client message consumer in current Camel version ?
>
> Best regards,
> Grzegorz
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-build-an-outgoing-tcp-connection-gateway-that-consumes-messages-tp5724102p5725231.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
"In a world without walls and fences who needs Windows and Gates?"