Package org.jboss.resource.adapter.jms
Class JmsConnectionFactoryImpl
- java.lang.Object
-
- org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl
-
- All Implemented Interfaces:
Serializable,javax.jms.ConnectionFactory,javax.jms.QueueConnectionFactory,javax.jms.TopicConnectionFactory,Referenceable,javax.resource.Referenceable,JmsConnectionFactory
public class JmsConnectionFactoryImpl extends Object implements JmsConnectionFactory, javax.resource.Referenceable
The the connection factory implementation for the JMS RA. This object will be the QueueConnectionFactory or TopicConnectionFactory which clients will use to create connections.- Author:
- Peter Antman., Jason Dillon, Adrian Brock
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jboss.resource.adapter.jms.JmsConnectionFactory
AGNOSTIC, JMS_CONTEXT, QUEUE, TOPIC
-
-
Constructor Summary
Constructors Constructor Description JmsConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.ConnectioncreateConnection()javax.jms.ConnectioncreateConnection(String userName, String password)javax.jms.JMSContextcreateContext()javax.jms.JMSContextcreateContext(int sessionMode)javax.jms.JMSContextcreateContext(String userName, String password)javax.jms.JMSContextcreateContext(String userName, String password, int sessionMode)javax.jms.QueueConnectioncreateQueueConnection()javax.jms.QueueConnectioncreateQueueConnection(String userName, String password)javax.jms.TopicConnectioncreateTopicConnection()javax.jms.TopicConnectioncreateTopicConnection(String userName, String password)ReferencegetReference()voidsetReference(Reference reference)
-
-
-
Method Detail
-
setReference
public void setReference(Reference reference)
- Specified by:
setReferencein interfacejavax.resource.Referenceable
-
getReference
public Reference getReference()
- Specified by:
getReferencein interfaceReferenceable
-
createQueueConnection
public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSException- Specified by:
createQueueConnectionin interfacejavax.jms.QueueConnectionFactory- Throws:
javax.jms.JMSException
-
createQueueConnection
public javax.jms.QueueConnection createQueueConnection(String userName, String password) throws javax.jms.JMSException
- Specified by:
createQueueConnectionin interfacejavax.jms.QueueConnectionFactory- Throws:
javax.jms.JMSException
-
createTopicConnection
public javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException- Specified by:
createTopicConnectionin interfacejavax.jms.TopicConnectionFactory- Throws:
javax.jms.JMSException
-
createTopicConnection
public javax.jms.TopicConnection createTopicConnection(String userName, String password) throws javax.jms.JMSException
- Specified by:
createTopicConnectionin interfacejavax.jms.TopicConnectionFactory- Throws:
javax.jms.JMSException
-
createConnection
public javax.jms.Connection createConnection() throws javax.jms.JMSException- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Throws:
javax.jms.JMSException
-
createConnection
public javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Throws:
javax.jms.JMSException
-
createContext
public javax.jms.JMSContext createContext()
- Specified by:
createContextin interfacejavax.jms.ConnectionFactory
-
createContext
public javax.jms.JMSContext createContext(String userName, String password)
- Specified by:
createContextin interfacejavax.jms.ConnectionFactory
-
createContext
public javax.jms.JMSContext createContext(int sessionMode)
- Specified by:
createContextin interfacejavax.jms.ConnectionFactory
-
-