org.objectweb.jonas_jms
Class JQueueConnectionFactory
java.lang.Object
org.objectweb.jonas_jms.JConnectionFactory
org.objectweb.jonas_jms.JQueueConnectionFactory
- All Implemented Interfaces:
- Serializable, ConnectionFactory, QueueConnectionFactory, Referenceable
public class JQueueConnectionFactory
- extends JConnectionFactory
- implements QueueConnectionFactory
JQueueConnectionFactory wraps a XAQueueConnectionFactory.
- Author:
- Laurent Chauvirey, Frederic Maistre, Nicolas Tachker
Contributor(s):
Philippe Durieux
Jeff Mesnil
Philippe Coq
- 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)
- Constructor.
The underlaying XAQueueConnectionFactory is found in the JmsManager.
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.
JMSSecurityException
- - if client authentication fails due to
invalid user name or password.
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.
JMSSecurityException
- - if client authentication fails due to
invalid user name or password.
Copyright © 2007 OW2 Consortium. All Rights Reserved.