37.3. Methods

The QueueConnectionFactory interface inherits from the interface javax.jms.ConnectionFactory, which has no fields or methods. The following methods are defined in the interface javax.jms.QueueConnectionFactory.

createQueueConnection()

public QueueConnection createQueueConnection()

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:

a newly created queue connection

THROWS:

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

createQueueConnection(String, ...

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.