LibraryLink ToToggle FramesPrintFeedback

Configuring the Example

You can configure the producer and the consumer in the Java example in a number of different ways by passing -D plus option flags to the clients at runtime, as shown:

ant consumer -Durl=tcp://hostname:1234 -Dtopic=true

You can configure both the consumer and the producer by passing them the following properties.

When running the consumer, you can also pass in the following arguments:

clientId

A string used to identify the client.

ack-mode

Sets the type of acknowledgement to use. See the JavaDoc for java.jmx.Session for details.

receive-time-out

An integer that specifies the time to wait until the message is consumed.