|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmoos.ssds.jms.PublisherComponent
PublisherComponent provides an easy to use class that handles JMS
publish-subscribe messaging. A PublisherComponent can publish
to multiple topics. The goal of this is to povide messsaging without requiring
the developer to use JMS api's
Usage:
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.
| Constructor Summary | |
PublisherComponent()
This is the default constructor |
|
PublisherComponent(java.lang.String topicName)
This is a constructor that starts a connection to a JMS server |
|
| Method Summary | |
void |
finalize()
This is the finalize method that is run by the garbage collector just before destroying the object. |
java.lang.String |
getTopicname()
Getter method to retrieve the name of the topic that this publisher is sending its messagest to |
boolean |
publish(java.io.Serializable obj)
This is the method that the client will call when it is ready to publish a serialized object to a topic |
void |
setTopicname(java.lang.String topicName)
This function specifies the topic name to publish to. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PublisherComponent(java.lang.String topicName)
topicName - is a String that represents the JNDI name of the
topic that this PublisherComponent will be sending messages topublic PublisherComponent()
| Method Detail |
public boolean publish(java.io.Serializable obj)
obj - This is the serialized object that will be published to the JMS topic
public void setTopicname(java.lang.String topicName)
topicName - The name of the JMS topic name to publish topublic java.lang.String getTopicname()
public void finalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||