org.objectweb.jonas_jms
Class JQueueConnectionFactory
java.lang.Object
org.objectweb.jonas_jms.JConnectionFactory
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.ConnectionFactory |
createConnection, createConnection |
JQueueConnectionFactory
public JQueueConnectionFactory(java.lang.String name)
- Constructor.
The underlaying XAQueueConnectionFactory is found in the JmsManager.
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 namepassword
- - 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.