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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionFactory
public ConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
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