public class LSQueueConnectionFactory extends LSConnectionFactory implements QueueConnectionFactory
QueueConnectionFactory interface implementation that can be used used to create a queue
connection with a JMS broker through an embedded JMS Extender client connection.| Constructor and Description |
|---|
LSQueueConnectionFactory()
Creates an
LSQueueConnectionFactory object that can create new QueueConnection
objects. |
LSQueueConnectionFactory(java.lang.String serverAddress,
java.lang.String jmsConnector)
Creates an
LSQueueConnectionFactory object that can create new QueueConnection
objects. |
LSQueueConnectionFactory(java.lang.String serverAddress,
java.lang.String adapterSet,
java.lang.String jmsConnector)
Creates an
LSQueueConnectionFactory object that can create new QueueConnection
objects. |
| Modifier and Type | Method and Description |
|---|---|
QueueConnection |
createQueueConnection()
Creates a new
QueueConnection with an unspecified user identity. |
QueueConnection |
createQueueConnection(java.lang.String userName,
java.lang.String password)
Creates a new
QueueConnection using the specified user name and password. |
createConnection, createConnection, createContext, createContext, createContext, createContext, getAdapterSet, getConnectionListener, getJmsConnector, getServerAddress, setAdapterSet, setConnectionListener, setJmsConnector, setServerAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateConnection, createConnection, createContext, createContext, createContext, createContextpublic LSQueueConnectionFactory()
LSQueueConnectionFactory object that can create new QueueConnection
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 LSQueueConnectionFactory(java.lang.String serverAddress,
java.lang.String jmsConnector)
LSQueueConnectionFactory object that can create new QueueConnection
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 LSQueueConnectionFactory(java.lang.String serverAddress,
java.lang.String adapterSet,
java.lang.String jmsConnector)
LSQueueConnectionFactory object that can create new QueueConnection
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 QueueConnection createQueueConnection() throws JMSException
QueueConnection 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 QueueConnection
object.
If a LSConnectionListener implementation has been set, its events will be called
during connection creation.
createQueueConnection in interface QueueConnectionFactoryQueueConnectionJMSException - if the connection creation fails for some reasonpublic QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password) throws JMSException
QueueConnection 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 QueueConnection object.
If a LSConnectionListener implementation has been set, its events will be called
during connection creation.
createQueueConnection in interface QueueConnectionFactoryuserName - the user's namepassword - the user's passwordjavax.jms.QueueConnectionJMSException - if the connection creation fails for some reason