Top Description Methods
javax.jms

public Interface QueueConnectionFactory

extends ConnectionFactory
Known Direct Subinterfaces
javax.jms.XAQueueConnectionFactory

A client uses a QueueConnectionFactory object to create QueueConnection objects 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 ConnectionFactory object.

The QueueConnectionFactory object can be used to support existing code that already uses it.

Since
JMS 1.0
Version
JMS 2.0
See Also
javax.jms.ConnectionFactory

Method Summary

Modifier and TypeMethod and Description
public QueueConnection

Returns:

a newly created queue connection
createQueueConnection
()

Creates a queue connection with the default user identity.

public QueueConnection

Returns:

a newly created queue connection
createQueueConnection
(String
the caller's user name
userName
,
String
the caller's password
password
)

Creates a queue connection with the specified user identity.

Inherited from javax.jms.ConnectionFactory:
createConnectioncreateConnectioncreateContextcreateContextcreateContextcreateContext

Method Detail

createQueueConnectionback to summary
public QueueConnection createQueueConnection() throws JMSException

Creates a queue connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. .

Returns:QueueConnection

a newly created queue connection

Exceptions
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.
createQueueConnectionback to summary
public QueueConnection createQueueConnection(String userName, String password) throws JMSException

Creates a queue connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Parameters
userName:String

the caller's user name

password:String

the caller's password

Returns:QueueConnection

a newly created queue connection

Exceptions
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.