Package org.apache.activemq.artemis.ra
Class ActiveMQRAConnectionFactoryImpl
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactoryImpl
-
- All Implemented Interfaces:
Serializable,javax.jms.ConnectionFactory,javax.jms.QueueConnectionFactory,javax.jms.TopicConnectionFactory,javax.jms.XAConnectionFactory,javax.jms.XAQueueConnectionFactory,javax.jms.XATopicConnectionFactory,Referenceable,javax.resource.Referenceable,ActiveMQRAConnectionFactory
public class ActiveMQRAConnectionFactoryImpl extends Object implements ActiveMQRAConnectionFactory
The connection factory- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactory
CONNECTION, QUEUE_CONNECTION, TOPIC_CONNECTION, XA_CONNECTION, XA_QUEUE_CONNECTION, XA_TOPIC_CONNECTION
-
-
Constructor Summary
Constructors Constructor Description ActiveMQRAConnectionFactoryImpl(ActiveMQRAManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.ConnectioncreateConnection()Create a connectionjavax.jms.ConnectioncreateConnection(String userName, String password)Create a connectionjavax.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()Create a queue connectionjavax.jms.QueueConnectioncreateQueueConnection(String userName, String password)Create a queue connectionjavax.jms.TopicConnectioncreateTopicConnection()Create a topic connectionjavax.jms.TopicConnectioncreateTopicConnection(String userName, String password)Create a topic connectionjavax.jms.XAConnectioncreateXAConnection()Create a XA connectionjavax.jms.XAConnectioncreateXAConnection(String userName, String password)Create a XA connectionjavax.jms.XAJMSContextcreateXAContext()javax.jms.XAJMSContextcreateXAContext(String userName, String password)javax.jms.XAQueueConnectioncreateXAQueueConnection()Create a XA queue connectionjavax.jms.XAQueueConnectioncreateXAQueueConnection(String userName, String password)Create a XA queue connectionjavax.jms.XATopicConnectioncreateXATopicConnection()Create a XA topic connectionjavax.jms.XATopicConnectioncreateXATopicConnection(String userName, String password)Create a XA topic connectionorg.apache.activemq.artemis.jms.client.ActiveMQConnectionFactorygetDefaultFactory()ReferencegetReference()Get the referenceActiveMQResourceAdaptergetResourceAdapter()voidsetReference(Reference reference)Set the reference
-
-
-
Constructor Detail
-
ActiveMQRAConnectionFactoryImpl
public ActiveMQRAConnectionFactoryImpl(ActiveMQRAManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
Constructor- Parameters:
mcf- The managed connection factorycm- The connection manager
-
-
Method Detail
-
setReference
public void setReference(Reference reference)
Set the reference- Specified by:
setReferencein interfacejavax.resource.Referenceable- Parameters:
reference- The reference
-
getReference
public Reference getReference()
Get the reference- Specified by:
getReferencein interfaceReferenceable- Returns:
- The reference
-
createQueueConnection
public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSExceptionCreate a queue connection- Specified by:
createQueueConnectionin interfacejavax.jms.QueueConnectionFactory- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createQueueConnection
public javax.jms.QueueConnection createQueueConnection(String userName, String password) throws javax.jms.JMSException
Create a queue connection- Specified by:
createQueueConnectionin interfacejavax.jms.QueueConnectionFactory- Parameters:
userName- The user namepassword- The password- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createTopicConnection
public javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSExceptionCreate a topic connection- Specified by:
createTopicConnectionin interfacejavax.jms.TopicConnectionFactory- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createTopicConnection
public javax.jms.TopicConnection createTopicConnection(String userName, String password) throws javax.jms.JMSException
Create a topic connection- Specified by:
createTopicConnectionin interfacejavax.jms.TopicConnectionFactory- Parameters:
userName- The user namepassword- The password- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createConnection
public javax.jms.Connection createConnection() throws javax.jms.JMSExceptionCreate a connection- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createConnection
public javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
Create a connection- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Parameters:
userName- The user namepassword- The password- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createXAQueueConnection
public javax.jms.XAQueueConnection createXAQueueConnection() throws javax.jms.JMSExceptionCreate a XA queue connection- Specified by:
createXAQueueConnectionin interfacejavax.jms.XAQueueConnectionFactory- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createXAQueueConnection
public javax.jms.XAQueueConnection createXAQueueConnection(String userName, String password) throws javax.jms.JMSException
Create a XA queue connection- Specified by:
createXAQueueConnectionin interfacejavax.jms.XAQueueConnectionFactory- Parameters:
userName- The user namepassword- The password- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createXATopicConnection
public javax.jms.XATopicConnection createXATopicConnection() throws javax.jms.JMSExceptionCreate a XA topic connection- Specified by:
createXATopicConnectionin interfacejavax.jms.XATopicConnectionFactory- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createXATopicConnection
public javax.jms.XATopicConnection createXATopicConnection(String userName, String password) throws javax.jms.JMSException
Create a XA topic connection- Specified by:
createXATopicConnectionin interfacejavax.jms.XATopicConnectionFactory- Parameters:
userName- The user namepassword- The password- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createXAConnection
public javax.jms.XAConnection createXAConnection() throws javax.jms.JMSExceptionCreate a XA connection- Specified by:
createXAConnectionin interfacejavax.jms.XAConnectionFactory- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
createXAConnection
public javax.jms.XAConnection createXAConnection(String userName, String password) throws javax.jms.JMSException
Create a XA connection- Specified by:
createXAConnectionin interfacejavax.jms.XAConnectionFactory- Parameters:
userName- The user namepassword- The password- Returns:
- The connection
- Throws:
javax.jms.JMSException- Thrown if the operation fails
-
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(String userName, String password, int sessionMode)
- Specified by:
createContextin interfacejavax.jms.ConnectionFactory
-
createContext
public javax.jms.JMSContext createContext(int sessionMode)
- Specified by:
createContextin interfacejavax.jms.ConnectionFactory
-
createXAContext
public javax.jms.XAJMSContext createXAContext()
- Specified by:
createXAContextin interfacejavax.jms.XAConnectionFactory
-
createXAContext
public javax.jms.XAJMSContext createXAContext(String userName, String password)
- Specified by:
createXAContextin interfacejavax.jms.XAConnectionFactory
-
getDefaultFactory
public org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory getDefaultFactory() throws javax.resource.ResourceException- Specified by:
getDefaultFactoryin interfaceActiveMQRAConnectionFactory- Throws:
javax.resource.ResourceException
-
getResourceAdapter
public ActiveMQResourceAdapter getResourceAdapter()
- Specified by:
getResourceAdapterin interfaceActiveMQRAConnectionFactory
-
-