LibraryToggle FramesPrintFeedback

Start a consumer that consumes messages from the TEST.FOO queue belonging to the group peer group. To start the consumer, run the consumer tool with a peer group URL as follows:

cd InstallDir/example
ant consumer -Durl="peer://group/broker1?persistent=false" -Dmax=100

Where the first component of the URL path, group, specifies that this peer belongs to the group peer group. The second component, broker1, specifies the name of the embedded broker and the setting, persistent=false, sets a broker option. When the consumer starts up, you should see output like the following in the command window:

While the consumer is starting up, it activates an embedded broker with broker name, broker1, and attempts to connect to its peers using a multicast discovery agent.

Comments powered by Disqus