Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C9499B6F for ; Wed, 6 Mar 2013 15:38:50 +0000 (UTC) Received: (qmail 41169 invoked by uid 500); 6 Mar 2013 15:38:49 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 41135 invoked by uid 500); 6 Mar 2013 15:38:49 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 41124 invoked by uid 99); 6 Mar 2013 15:38:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 15:38:49 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.215.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-la0-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 15:38:45 +0000 Received: by mail-la0-f50.google.com with SMTP id ec20so7576482lab.9 for ; Wed, 06 Mar 2013 07:38:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=dzuIlWXvLfG6vEOZUOEPqNJn4T2EZR2fJ4Qxg5PbMZ4=; b=hAgzX0wWD7qGbUt3fhzB6BzcPJpaCukSSFqCORLJhG+Bw1VIIBzmjKvVfp4MnjSS+A cjbmXC8uAzkcoW8Xj0T/t04zcHhGcLBtPo6oyy5xpNZBR/lnMUl+LRFHrDHfwTSfp8lQ Mun50VjNJYzGRrBoZG7MKjx08cY7WG172e9O+QY7xmS+irqKZSp9T1IXy9ChqY1M4PyK Wj/FUdA+NiNC74hHthIquRviStC5V7RQzeWDCwN7CV5nS9P5+gy81jqdbGw+NObBfR8C LpMhJ8evAtynJl/YelRzOAsjjpoCkT3FcN/BEBaaL7GoGoVfmuMyTSwpPUGB7hiqYyb4 FrHA== MIME-Version: 1.0 X-Received: by 10.152.134.164 with SMTP id pl4mr25513079lab.54.1362584303768; Wed, 06 Mar 2013 07:38:23 -0800 (PST) Received: by 10.114.38.66 with HTTP; Wed, 6 Mar 2013 07:38:23 -0800 (PST) In-Reply-To: <1362582283935-4664435.post@n4.nabble.com> References: <1362040905471-4664240.post@n4.nabble.com> <1362410417497-4664350.post@n4.nabble.com> <1362573946644-4664428.post@n4.nabble.com> <9033EEC0-552B-47F2-9F56-C66F10FE4C2B@evosent.com> <1362582283935-4664435.post@n4.nabble.com> Date: Wed, 6 Mar 2013 08:38:23 -0700 Message-ID: Subject: Re: Best protocol & network interface binding From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=f46d043bd93c67a1e504d74361a8 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043bd93c67a1e504d74361a8 Content-Type: text/plain; charset=ISO-8859-1 Did you try SuoNayi's suggestion? That should work... On Wed, Mar 6, 2013 at 8:04 AM, jan 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 --f46d043bd93c67a1e504d74361a8--