javax.jms
Interface QueueConnectionFactory

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

Method Summary
 QueueConnection createQueueConnection()
          Create a queue connection with default user identity.
 QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password)
          Create a queue connection with specified user identity.
 

Method Detail

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(java.lang.String userName,
                                             java.lang.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 name
password - 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.