org.ow2.jotm.jms
Class JQueueConnectionFactory

java.lang.Object
  extended by org.ow2.jotm.jms.JConnectionFactory
      extended by org.ow2.jotm.jms.JQueueConnectionFactory
All Implemented Interfaces:
Serializable, ConnectionFactory, QueueConnectionFactory, Referenceable

public class JQueueConnectionFactory
extends JConnectionFactory
implements QueueConnectionFactory

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ow2.jotm.jms.JConnectionFactory
jms, logger, name, xacf
 
Constructor Summary
JQueueConnectionFactory(String name, XAQueueConnectionFactory xaqcf, org.objectweb.util.monolog.api.Logger logger)
          Constructor.
 
Method Summary
 QueueConnection createQueueConnection()
          Create a queue connection for an anonymous user.
 QueueConnection createQueueConnection(String userName, String password)
          Create a queue connection with specified user identity.
 
Methods inherited from class org.ow2.jotm.jms.JConnectionFactory
cleanPool, createConnection, createConnection, freeJConnection, getJConnection, getReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.ConnectionFactory
createConnection, createConnection
 

Constructor Detail

JQueueConnectionFactory

public JQueueConnectionFactory(String name,
                               XAQueueConnectionFactory xaqcf,
                               org.objectweb.util.monolog.api.Logger logger)
Constructor.

Parameters:
name - ConnectionFactory name
xaqcf - underlaying XAConnectionFactory
Method Detail

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 name
password - - 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.