public interface QueueConnectionFactory extends ConnectionFactory
QueueConnectionFactoryobject to create
QueueConnectionobjects with a point-to-point JMS provider.
QueueConnectionFactory can be used to create a
QueueConnection, from which specialized queue-related objects can be created. A more general, and recommended, approach is to use the
QueueConnectionFactory object can be used to support existing code that already uses it.
|Modifier and Type||Method and Description|
Creates a queue connection with the default user identity.
Creates a queue connection with the specified user identity.
QueueConnection createQueueConnection() throws JMSException
Connection.startmethod is explicitly called. .
QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password) throws JMSException
Connection.startmethod is explicitly called.
userName- the caller's user name
password- the caller's password
JMSException- if the JMS provider fails to create the queue connection due to some internal error.
JMSSecurityException- if client authentication fails due to an invalid user name or password.