com.sun.genericra.outbound
Class ConnectionFactory

java.lang.Object
  extended by com.sun.genericra.outbound.ConnectionFactory
All Implemented Interfaces:
java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, javax.naming.Referenceable

public class ConnectionFactory
extends java.lang.Object
implements javax.jms.ConnectionFactory, javax.jms.TopicConnectionFactory, javax.jms.QueueConnectionFactory, java.io.Serializable, javax.resource.Referenceable

ConnectionFactory implementation for the generic JMS resource adapter Implements the ConnectionFactory, TopicConnectionFactory, QueueConnectionFactory interfaces. Provides an interface for getting a connection to a JMS provider. Application code looks up a ConnectionFactory instance from JNDI namespace and uses it to get EIS connections. The ManagedConnectionFactory creates an instance of this class while asked to create a ConnectionFactory.

Author:
Sivakumar Thyagarajan
See Also:
Serialized Form

Constructor Summary
ConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
           
 
Method Summary
 javax.jms.Connection createConnection()
           
 javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password)
           
 javax.jms.QueueConnection createQueueConnection()
           
 javax.jms.QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password)
           
 javax.jms.TopicConnection createTopicConnection()
           
 javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password)
           
 javax.naming.Reference getReference()
           
 void setReference(javax.naming.Reference ref)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactory

public ConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf,
                         javax.resource.spi.ConnectionManager cm)
Method Detail

createConnection

public javax.jms.Connection createConnection()
                                      throws javax.jms.JMSException
Specified by:
createConnection in interface javax.jms.ConnectionFactory
Throws:
javax.jms.JMSException

createConnection

public javax.jms.Connection createConnection(java.lang.String userName,
                                             java.lang.String password)
                                      throws javax.jms.JMSException
Specified by:
createConnection in interface javax.jms.ConnectionFactory
Throws:
javax.jms.JMSException

createTopicConnection

public javax.jms.TopicConnection createTopicConnection()
                                                throws javax.jms.JMSException
Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Throws:
javax.jms.JMSException

createTopicConnection

public javax.jms.TopicConnection createTopicConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Throws:
javax.jms.JMSException

createQueueConnection

public javax.jms.QueueConnection createQueueConnection()
                                                throws javax.jms.JMSException
Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Throws:
javax.jms.JMSException

createQueueConnection

public javax.jms.QueueConnection createQueueConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Throws:
javax.jms.JMSException

setReference

public void setReference(javax.naming.Reference ref)

getReference

public javax.naming.Reference getReference()
Specified by:
getReference in interface javax.naming.Referenceable