jms4spread
Class TopicConnectionFactory

java.lang.Object
  |
  +--jms4spread.TopicConnectionFactory

public class TopicConnectionFactory
extends java.lang.Object

A client uses a TopicConnectionFactory to create publish/subscribe topic connections.


Constructor Summary
TopicConnectionFactory()
          Creates a TopicConnectionFactory Object
 
Method Summary
 TopicConnection createTopicConnection()
          Creates a TopicConnection Object.
 TopicConnection createTopicConnection(java.lang.String username, java.lang.String password)
          Creates a TopicConnection Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicConnectionFactory

public TopicConnectionFactory()
Creates a TopicConnectionFactory Object
Method Detail

createTopicConnection

public TopicConnection createTopicConnection()
                                      throws JMSException
Creates a TopicConnection Object. A connection to spread is created. This will throw and exception if Spread is not running.
Returns:
TopicConnection
Throws:
JMSException - due to internal error

createTopicConnection

public TopicConnection createTopicConnection(java.lang.String username,
                                             java.lang.String password)
                                      throws JMSException
Creates a TopicConnection Object. A connection to spread is created. This will throw and exception if Spread is not running.
Parameters:
username - a name used to connect to Spread
password - variable ignored
Returns:
TopicConnection
Throws:
JMSException - due to internal error