Skip to main content

Examples

The AMPS Java Client includes a set of example programs that provide simple demonstrations of client functionality.

A sample archive is available that includes a set of samples and a configuration file for AMPS: java-examples.zip.

The samples archive includes samples such as:

Sample NameDemonstrates
ConsolePublisher.javaPublish messages to AMPS.
ConsoleSubscriber.javaReceive messages from AMPS.
SOWConsolePublisher.javaPublishing messages to a SOW topic.
SOWConsoleSubscriber.javaQuerying messages from a SOW topic.
SOWandSubscribeConsoleSubscriber.javaQuerying a SOW topic and entering a subscription to the topic in a single atomic operation.
SOWUpdater.javaPublishes message to a SOW topic and then updates them for use with the SowAndSubscribeWithOOF sample.
SowAndSubscribeWithOOF.javaQuerying a SOW topic and entering a subscription to the topic in a single atomic operation while registering for notification that a previously-matching message no longer matches the subscription.
PublishForReplay.javaPublish messages to the transaction log for use by the SubscribeForReplay example.
SubscribeForReplay.javaDemonstrate replaying messages from the transaction log using a bookmark subscribe.
QueuePublisher.javaPublishing messages to a queue topic.
QueueSubscriber.javaReceiving and acknowledging messages from a queue topic.
CompositeMessagePublisher.javaPublish a composite message using the CompositeMessageBuilder.
CompositeMessageSubscriber.javaReceive a composite message and use the CompositeMessageParser to extract the parts of the message.
FIXBuilderPublisher.javaUse the FIX builder convenience class to build and publish a FIX-format message.
FIXShredderSubscriber.javaUse the FIX shredder convenience class to display a FIX-format message received from AMPS.
NVFIXBuilderPublisher.javaUse the NVFIX builder convenience class to build and publish a FIX-format message.
NVFIXShredderSubscriber.javaUse the NVFIX shredder convenience class to display a FIX-format message received from AMPS.