moos.ssds.jms
Class Publisher

java.lang.Object
  extended bymoos.ssds.jms.Publisher

public class Publisher
extends java.lang.Object

Description

Facade over JMS publishing objects.

UML


 

License

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.

Copyright 2003 MBARI. MBARI Proprietary Information. All rights reserved.

Since:
Jun 5, 2003 10:59:14 AM
Version:
$Id: Publisher.java,v 1.1 2003/07/01 20:11:14 kgomes Exp $
Author:
Brian Schlining

Constructor Summary
Publisher()
           
Publisher(java.lang.String topicName)
          Constructor.
 
Method Summary
 void finalize()
           
 java.lang.String getTopicname()
           
 boolean isConnected()
           
 boolean publish(java.io.Serializable obj)
           
 boolean setTopicname(java.lang.String topicName)
          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

Publisher

public Publisher(java.lang.String topicName)
Constructor. Starts a connection to the JMS server


Publisher

public Publisher()
Method Detail

publish

public boolean publish(java.io.Serializable obj)

setTopicname

public boolean setTopicname(java.lang.String topicName)
Specifies the topic name to publish to. Calling this method will stop and restart the publisher with a new topic name.

Parameters:
topicName -
Throws:
javax.naming.NamingException
javax.jms.JMSException

isConnected

public boolean isConnected()

getTopicname

public java.lang.String getTopicname()

finalize

public void finalize()