public class LSTopicConnectionFactory extends LSConnectionFactory implements TopicConnectionFactory
TopicConnectionFactory
interface implementation that can be used used to create a topic
connection with a JMS broker through an embedded JMS Extender client connection.Constructor and Description |
---|
LSTopicConnectionFactory()
Creates an
LSTopicConnectionFactory object that can create new TopicConnection
objects. |
LSTopicConnectionFactory(java.lang.String serverAddress,
java.lang.String jmsConnector)
Creates an
LSTopicConnectionFactory object that can create new TopicConnection
objects. |
LSTopicConnectionFactory(java.lang.String serverAddress,
java.lang.String adapterSet,
java.lang.String jmsConnector)
Creates an
LSTopicConnectionFactory object that can create new TopicConnection
objects. |
Modifier and Type | Method and Description |
---|---|
TopicConnection |
createTopicConnection()
Creates a new
TopicConnection with an unspecified user identity. |
TopicConnection |
createTopicConnection(java.lang.String userName,
java.lang.String password)
Creates a new
TopicConnection using the specified user name and password. |
createConnection, createConnection, createContext, createContext, createContext, createContext, getAdapterSet, getConnectionListener, getJmsConnector, getServerAddress, setAdapterSet, setConnectionListener, setJmsConnector, setServerAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createConnection, createConnection, createContext, createContext, createContext, createContext
public LSTopicConnectionFactory()
LSTopicConnectionFactory
object that can create new TopicConnection
objects.
Uses the default adapter set name JMS
, but leaves empty both the JMS connector name
and the server address (to be specified later).
public LSTopicConnectionFactory(java.lang.String serverAddress, java.lang.String jmsConnector)
LSTopicConnectionFactory
object that can create new TopicConnection
objects.
Uses the default adapter set name JMS
and the specified JMS connector name and
server address.
serverAddress
- the URL of the JMS Extender to connect tojmsConnector
- the name of the JMS connector to usepublic LSTopicConnectionFactory(java.lang.String serverAddress, java.lang.String adapterSet, java.lang.String jmsConnector)
LSTopicConnectionFactory
object that can create new TopicConnection
objects.
Uses the specified adapter set name, JMS connector name and server address.
serverAddress
- the URL of the JMS Extender to connect toadapterSet
- the name of the adapter set to usejmsConnector
- the name of the JMS connector to usepublic TopicConnection createTopicConnection() throws JMSException
TopicConnection
with an unspecified user identity.
The connection is created in stopped mode. No messages will be delivered until the Connection.start()
method is explicitly called on the TopicConnection
object.
If a LSConnectionListener
implementation has been set, its events will be called
during connection creation.
createTopicConnection
in interface TopicConnectionFactory
TopicConnection
JMSException
- if the connection creation fails for some reasonpublic TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password) throws JMSException
TopicConnection
using the specified user name and password.
The connection is created in stopped mode. No messages will be delivered until the Connection.start()
method is explicitly called on the TopicConnection
object.
If a LSConnectionListener
implementation has been set, its events will be called
during connection creation.
createTopicConnection
in interface TopicConnectionFactory
userName
- the user's namepassword
- the user's passwordTopicConnection
JMSException
- if the connection creation fails for some reason