org.huihoo.jfox.ms.jms.queue
Class QueueConnectionFactoryImpl

java.lang.Object
  extended byorg.huihoo.jfox.ms.jms.base.ConnectionFactoryImpl
      extended byorg.huihoo.jfox.ms.jms.queue.QueueConnectionFactoryImpl
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.naming.Referenceable, java.io.Serializable

public class QueueConnectionFactoryImpl
extends ConnectionFactoryImpl
implements javax.jms.QueueConnectionFactory, javax.naming.Referenceable, java.io.Serializable

A client uses a QueueConnectionFactory object to create QueueConnection objects with a point-to-point JMS provider.

Version:
Revision: 1.1 Date: 2002-05-20 21:45:49
Author:
Peter.Cheng
See Also:
Serialized Form

Constructor Summary
QueueConnectionFactoryImpl(java.lang.String url)
           
 
Method Summary
 javax.jms.QueueConnection createQueueConnection()
          Create a queue connection using no user credentials.
 javax.jms.QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password)
          Create a queue connection using the supplied user credentials for the connection.
 
Methods inherited from class org.huihoo.jfox.ms.jms.base.ConnectionFactoryImpl
getReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

QueueConnectionFactoryImpl

public QueueConnectionFactoryImpl(java.lang.String url)
Method Detail

createQueueConnection

public javax.jms.QueueConnection createQueueConnection()
                                                throws javax.jms.JMSException
Create a queue connection using no user credentials.

Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Returns:
QueueConnection A new queue connection instance
Throws:
javax.jms.JMSException
See Also:
QueueConnectionFactory

createQueueConnection

public javax.jms.QueueConnection createQueueConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Create a queue connection using the supplied user credentials for the connection.

Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Parameters:
userName - The username of the user requesting the connection.
password - The password corresponding to the supplied username.
Returns:
QueueConnection QueueConnection A new queue connection instance.
Throws:
javax.jms.JMSException


Copyright © 2002-2003 Open Enterprise Foundation. All Rights Reserved.