org.ow2.jotm.jms
Class JQueueConnectionFactory
java.lang.Object
org.ow2.jotm.jms.JConnectionFactory
org.ow2.jotm.jms.JQueueConnectionFactory
- All Implemented Interfaces:
- Serializable, ConnectionFactory, QueueConnectionFactory, Referenceable
public class JQueueConnectionFactory
- extends JConnectionFactory
- implements QueueConnectionFactory
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JQueueConnectionFactory
public JQueueConnectionFactory(String name,
XAQueueConnectionFactory xaqcf,
org.objectweb.util.monolog.api.Logger logger)
- Constructor.
- Parameters:
name - ConnectionFactory namexaqcf - underlaying XAConnectionFactory
createQueueConnection
public QueueConnection createQueueConnection()
throws JMSException
- Create a queue connection for an anonymous user.
- Specified by:
createQueueConnection in interface QueueConnectionFactory
- 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.
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.
- Specified by:
createQueueConnection in interface QueueConnectionFactory
- Parameters:
userName - - the caller's user namepassword - - the caller's password
- Throws:
JMSException - - if JMS Provider fails to create Queue Connection
due to some internal error. required resources for a Queue Connection.
Copyright ? 2008 OW2 Consortium. All Rights Reserved.