On Mon, Jun 22, 2009 at 11:41 AM, demonair<demon...@gmail.com> 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)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Reply via email to