Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::cmw::mom::test::HelloWorld Class Reference

Inheritance diagram for cern::cmw::mom::test::HelloWorld:

Inheritance graph
[legend]
Collaboration diagram for cern::cmw::mom::test::HelloWorld:

Collaboration graph
[legend]
List of all members.

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())

Detailed Description

The HelloWorld example. A publisher publishes the message 'Hello World!' to the topic CMW.TEMP.Hello and a subscriber subscribes to it.


Constructor & Destructor Documentation

cern::cmw::mom::test::HelloWorld::HelloWorld  )  [inline]
 

Instantiates Publisher & Subscriber, sets up the subscription and publishes the message


Member Function Documentation

void cern::cmw::mom::test::HelloWorld::close  )  [inline]
 

Unsubscribes and deallocates both Subscriber & Publisher.

void cern::cmw::mom::test::HelloWorld::main String[]  args  )  [inline, static]
 

Method main

Parameters:
args 

void cern::cmw::mom::test::HelloWorld::onMessage javax.jms.Message  m  )  [inline]
 

Method implementing the message handler defined in the SubscriptionListener interface.

Parameters:
m 

void cern::cmw::mom::test::HelloWorld::publishToHelloWorld  )  [inline]
 

Preapares the message and publishes it.

void cern::cmw::mom::test::HelloWorld::subscribeToHelloWorld  )  [inline]
 

Sets up the subscription.


Member Data Documentation

final Category cern::cmw::mom::test::HelloWorld::cat = Category.getInstance(HelloWorld.class.getName()) [static, private]
 

final String cern::cmw::mom::test::HelloWorld::HELLO_TOPIC = "CMW.TEMP.Hello" [static, private]
 

The Topic name.

final String cern::cmw::mom::test::HelloWorld::MSG_TXT = "Hello World !!" [static, private]
 

The message text.

Publisher cern::cmw::mom::test::HelloWorld::pub = null [private]
 

The Publisher instance.

Subscriber cern::cmw::mom::test::HelloWorld::sub = null [private]
 

The Subscriber instance.

long cern::cmw::mom::test::HelloWorld::subscriptionToken = 0 [private]
 

The subscription token.

final String cern::cmw::mom::test::HelloWorld::TEXT_MAP_FIELD = "TXT" [static, private]
 

The MapMessage message fields.

final String cern::cmw::mom::test::HelloWorld::TIMESTAMP_MAP_FIELD = "TS" [static, private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:05 2009 for ACS Java API by doxygen 1.3.8