On 7/19/07, Henk van Voorthuijsen <[EMAIL PROTECTED]> wrote:

It all looks very sensible - however, all how-to's I encountered so far tell
me how to configure a broker, or a receiver or a sender - but not together!

So now the question becomes: how do I set up a sender and receiver so that
they can actually communicate (using JNDI lookup if possible)?

Well you send messages to a queue using a JMS producer and consume
them from the same queue using a JMS consumer. There are examples of
each of these in the examples directory of ActiveMQ. They work right
out of the box if your run them like this:

1) In one terminal, start up ActiveMQ:

$ ./bin/activemq

2) In a second terminal, run the JMS producer:

$ cd <ACTIVEMQ-HOME>/examples
$ ant producer

3) In the second terminal, now run the JMS consumer:

$ ant consumer

This will demonstrate producing messages to a queue named TEST.FOO and
consuming messages from the same queue. This is how the producer and
the consumer communicate - via the queue.

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to