javax.jms
Interface QueueConnectionFactory
- All Superinterfaces:
- ConnectionFactory
- All Known Subinterfaces:
- XAQueueConnectionFactory
- public interface QueueConnectionFactory
- extends ConnectionFactory
A client uses a QueueConnectionFactory to create QueueConnections with
a JMS PTP provider.
- See Also:
ConnectionFactory
createQueueConnection
public QueueConnection createQueueConnection()
throws JMSException
- Create a queue connection with default user identity.
The connection is created in stopped mode. No messages
will be delivered until
Connection.start
method
is explicitly called.
- Returns:
- a newly created queue connection.
- Throws:
JMSException
- if JMS Provider fails to create Queue Connection
due to some internal error.
required resources for a Queue Connection.JMSSecurityException
- if client authentication fails due to
invalid user name or password.
createQueueConnection
public QueueConnection createQueueConnection(String userName,
String password)
throws JMSException
- Create a queue connection with specified user identity.
The connection is created in stopped mode. No messages
will be delivered until
Connection.start
method
is explicitly called.
- Parameters:
userName
- the caller's user namepassword
- the caller's password- Returns:
- a newly created queue connection.
- Throws:
JMSException
- if JMS Provider fails to create Queue Connection
due to some internal error.JMSSecurityException
- if client authentication fails due to
invalid user name or password.