org.objectweb.jonas_jms
Class JQueueConnectionFactory

java.lang.Object
  extended by org.objectweb.jonas_jms.JConnectionFactory
      extended by org.objectweb.jonas_jms.JQueueConnectionFactory
All Implemented Interfaces:
java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.naming.Referenceable

public class JQueueConnectionFactory
extends JConnectionFactory
implements javax.jms.QueueConnectionFactory

JQueueConnectionFactory wraps a XAQueueConnectionFactory.

Author:
Laurent Chauvirey, Frederic Maistre, Nicolas Tachker Contributor(s): Philippe Durieux Jeff Mesnil Philippe Coq
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jonas_jms.JConnectionFactory
jms, name, xacf
 
Constructor Summary
JQueueConnectionFactory(java.lang.String name)
          Constructor.
 
Method Summary
 javax.jms.QueueConnection createQueueConnection()
          Create a queue connection for an anonymous user.
 javax.jms.QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password)
          Create a queue connection with specified user identity.
 
Methods inherited from class org.objectweb.jonas_jms.JConnectionFactory
createConnection, createConnection, freeJConnection, getJConnection, 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(java.lang.String name)
Constructor. The underlaying XAQueueConnectionFactory is found in the JmsManager.

Method Detail

createQueueConnection

public javax.jms.QueueConnection createQueueConnection()
                                                throws javax.jms.JMSException
Create a queue connection for an anonymous user.

Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Returns:
a newly created queue connection.
Throws:
javax.jms.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 javax.jms.QueueConnection createQueueConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.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 javax.jms.QueueConnectionFactory
Parameters:
userName - - the caller's user name
password - - the caller's password
Throws:
javax.jms.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.