Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 6459 invoked from network); 22 Jun 2009 17:47:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 17:47:32 -0000 Received: (qmail 2616 invoked by uid 500); 22 Jun 2009 17:47:42 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 2576 invoked by uid 500); 22 Jun 2009 17:47:42 -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 2559 invoked by uid 99); 22 Jun 2009 17:47:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 17:47:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bruce.snyder@gmail.com designates 209.85.218.221 as permitted sender) Received: from [209.85.218.221] (HELO mail-bw0-f221.google.com) (209.85.218.221) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 17:47:31 +0000 Received: by bwz21 with SMTP id 21so4336863bwz.38 for ; Mon, 22 Jun 2009 10:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/ni/fYTcuJOL4EQvw4IpTHgPvZzNJS6lFCGG/u/Oumw=; b=jjN/awUg360KJOajsw/fQFJsdgM8/1kogjCh7tBn9iOzyOiTBM72J9rfViWqu5/oE7 JAMZROcsevDcdBoDc/X+OE8qJW4j9mZpQUBcF371zDITUVmnQJroRwLz1jPt5aeHFxAA y2kjdNp2sFYCfo5nzdytcqMFOWxdbjZM/vF5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=AJd5XHJ2v3O+dIK7Nqg3w7qYRawhCfwC4NQgW0UcII/vSeETq/Eo5DTI+lUtr9B18f ok8UQHcIYmsZ6CB2dwG4wpYdNWSADGtJFlGh0GkLQgcD4xzQtc7dotRUCo3ZKFAeVyLX hipwln8oqeebFG+5q4nsQHuZIp4OiXtRTcaKk= MIME-Version: 1.0 Received: by 10.223.114.135 with SMTP id e7mr6425108faq.89.1245692829697; Mon, 22 Jun 2009 10:47:09 -0700 (PDT) In-Reply-To: <24152072.post@talk.nabble.com> References: <24152072.post@talk.nabble.com> Date: Mon, 22 Jun 2009 11:47:09 -0600 Message-ID: <7b3355cb0906221047x4ffeca24mceacd08386fecb46@mail.gmail.com> Subject: Re: Can not connect to another machine? From: Bruce Snyder To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jun 22, 2009 at 11:41 AM, demonair wrote: > > Hi all > > I'm using ActiveMQ, to send and receive messages. > > But now I want to connect to another machine to send and receive messages, > but not how to do it, I have to change to pass another ip? > > for example: > > private String url = "10.4.230.23"; > > and this is where IP sends and receives messages, > hope can help telling me where to send and receive change to that ip, or > send some manual which explains how. thanks You need to specify the broker URL when creating the JMS connection. See the examples in the example directory of the ActiveMQ distribution, specifically the src directory for the ProducerTool.java and the ConsumerTool.java. There's also some info here about running the examples: http://activemq.apache.org/examples.html Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E