On Wed, Dec 07, 2011 at 06:50:12PM -0500, Glen Mazza wrote:
> Hello, I was able to run the "Hello" and "MapSender/MapReceiver"
> examples available in the Qpid Java client download by following the
> README but there appear to be several more examples within the
> various packages under the "examples" folder.  I'm not sure how to
> run them though, and which classes constitute actual examples vs.
> helper classes for other examples, etc.
> 
> Does Qpid have any documentation on each of the samples available
> and how to run them?

For running the spout and drain examples, you can pass into each the
description for the queue. For example, while working on the Ruby APIs I
use:

spout "my-queue;{create:always}"

to create a queue named "my-queue" for sending messages. Then the drain
example just needs to use:

drain "my-queue"

to know where to go and find messages previously sent using spout. The
drain example can also be used to pull messages out of other queues,
which you can list with:

qpid-stat -q

-- 
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/

Attachment: pgpnOvRLEXYBg.pgp
Description: PGP signature

Reply via email to