activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Best protocol & network interface binding
Date Wed, 06 Mar 2013 15:38:23 GMT
Did you try SuoNayi's suggestion? That should work...



On Wed, Mar 6, 2013 at 8:04 AM, jan <jan_decooman@yahoo.com> wrote:

> When I open a socket in Java to send/receive data, I can do the following:
>
> // open socket
> dc = DatagramChannel.open(StandardProtocolFamily.INET6);
>
> // set options ...
>
> // bind to IP. The SocketAddress comes from the network-interface using
> // NetworkInterface.getByName(networkIntf)
> dc.bind(socketAddress);
>
> But that's the theory. I use ActiveMQ to receive JMS messages and write the
> following:
>
> ActiveMQConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("system", "manager", "tcp://some_server:61616");
>
> From the preceding answer from SuoNayi, the following code should work:
>
> ActiveMQConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("system", "manager",
>
> "tcp://broker-ip:broker-port/local-ip:local-port?wireFormat.maxInactivityDuration=120000
> ");
>
> where the variable "local-ip" comes from the
> NetworkInterface.getByName(networkIntf) object.
>
> However, I can't find any documentation. I will try this code tomorrow.
> Further info is really appreciated.
>
> greetings
> Jan
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Best-protocol-network-interface-binding-tp4664240p4664435.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message