Public Member Functions | |
HelloWorld () | |
void | subscribeToHelloWorld () |
void | publishToHelloWorld () |
void | close () |
void | onMessage (javax.jms.Message m) |
Static Public Member Functions | |
void | main (String[] args) |
Private Attributes | |
Publisher | pub = null |
Subscriber | sub = null |
long | subscriptionToken = 0 |
Static Private Attributes | |
final String | HELLO_TOPIC = "CMW.TEMP.Hello" |
final String | MSG_TXT = "Hello World !!" |
final String | TEXT_MAP_FIELD = "TXT" |
final String | TIMESTAMP_MAP_FIELD = "TS" |
final Category | cat = Category.getInstance(HelloWorld.class.getName()) |
|
Instantiates Publisher & Subscriber, sets up the subscription and publishes the message |
|
Unsubscribes and deallocates both Subscriber & Publisher. |
|
Method main
|
|
Method implementing the message handler defined in the SubscriptionListener interface.
|
|
Preapares the message and publishes it. |
|
Sets up the subscription. |
|
|
|
The Topic name. |
|
The message text. |
|
The Publisher instance. |
|
The Subscriber instance. |
|
The subscription token. |
|
The MapMessage message fields. |
|
|