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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopicConnectionFactory
public TopicConnectionFactory()
- Creates a TopicConnectionFactory Object
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 Spreadpassword
- variable ignored- Returns:
- TopicConnection
- Throws:
JMSException
- due to internal error