public class ActiveMQRAConnectionFactoryImpl extends Object implements ActiveMQRAConnectionFactory
CONNECTION, QUEUE_CONNECTION, TOPIC_CONNECTION, XA_CONNECTION, XA_QUEUE_CONNECTION, XA_TOPIC_CONNECTION
Constructor and Description |
---|
ActiveMQRAConnectionFactoryImpl(ActiveMQRAManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.jms.Connection |
createConnection()
Create a connection
|
javax.jms.Connection |
createConnection(String userName,
String password)
Create a connection
|
javax.jms.JMSContext |
createContext() |
javax.jms.JMSContext |
createContext(int sessionMode) |
javax.jms.JMSContext |
createContext(String userName,
String password) |
javax.jms.JMSContext |
createContext(String userName,
String password,
int sessionMode) |
javax.jms.QueueConnection |
createQueueConnection()
Create a queue connection
|
javax.jms.QueueConnection |
createQueueConnection(String userName,
String password)
Create a queue connection
|
javax.jms.TopicConnection |
createTopicConnection()
Create a topic connection
|
javax.jms.TopicConnection |
createTopicConnection(String userName,
String password)
Create a topic connection
|
javax.jms.XAConnection |
createXAConnection()
Create a XA connection
|
javax.jms.XAConnection |
createXAConnection(String userName,
String password)
Create a XA connection
|
javax.jms.XAJMSContext |
createXAContext() |
javax.jms.XAJMSContext |
createXAContext(String userName,
String password) |
javax.jms.XAQueueConnection |
createXAQueueConnection()
Create a XA queue connection
|
javax.jms.XAQueueConnection |
createXAQueueConnection(String userName,
String password)
Create a XA queue connection
|
javax.jms.XATopicConnection |
createXATopicConnection()
Create a XA topic connection
|
javax.jms.XATopicConnection |
createXATopicConnection(String userName,
String password)
Create a XA topic connection
|
ActiveMQConnectionFactory |
getDefaultFactory() |
Reference |
getReference()
Get the reference
|
ActiveMQResourceAdapter |
getResourceAdapter() |
void |
setReference(Reference reference)
Set the reference
|
public ActiveMQRAConnectionFactoryImpl(ActiveMQRAManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
mcf
- The managed connection factorycm
- The connection managerpublic void setReference(Reference reference)
reference
- The referencepublic Reference getReference()
getReference
in interface Referenceable
public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSException
createQueueConnection
in interface javax.jms.QueueConnectionFactory
javax.jms.JMSException
- Thrown if the operation failspublic javax.jms.QueueConnection createQueueConnection(String userName, String password) throws javax.jms.JMSException
createQueueConnection
in interface javax.jms.QueueConnectionFactory
userName
- The user namepassword
- The passwordjavax.jms.JMSException
- Thrown if the operation failspublic javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
javax.jms.JMSException
- Thrown if the operation failspublic javax.jms.TopicConnection createTopicConnection(String userName, String password) throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
userName
- The user namepassword
- The passwordjavax.jms.JMSException
- Thrown if the operation failspublic javax.jms.Connection createConnection() throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSException
- Thrown if the operation failspublic javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
userName
- The user namepassword
- The passwordjavax.jms.JMSException
- Thrown if the operation failspublic javax.jms.XAQueueConnection createXAQueueConnection() throws javax.jms.JMSException
createXAQueueConnection
in interface javax.jms.XAQueueConnectionFactory
javax.jms.JMSException
- Thrown if the operation failspublic javax.jms.XAQueueConnection createXAQueueConnection(String userName, String password) throws javax.jms.JMSException
createXAQueueConnection
in interface javax.jms.XAQueueConnectionFactory
userName
- The user namepassword
- The passwordjavax.jms.JMSException
- Thrown if the operation failspublic javax.jms.XATopicConnection createXATopicConnection() throws javax.jms.JMSException
createXATopicConnection
in interface javax.jms.XATopicConnectionFactory
javax.jms.JMSException
- Thrown if the operation failspublic javax.jms.XATopicConnection createXATopicConnection(String userName, String password) throws javax.jms.JMSException
createXATopicConnection
in interface javax.jms.XATopicConnectionFactory
userName
- The user namepassword
- The passwordjavax.jms.JMSException
- Thrown if the operation failspublic javax.jms.XAConnection createXAConnection() throws javax.jms.JMSException
createXAConnection
in interface javax.jms.XAConnectionFactory
javax.jms.JMSException
- Thrown if the operation failspublic javax.jms.XAConnection createXAConnection(String userName, String password) throws javax.jms.JMSException
createXAConnection
in interface javax.jms.XAConnectionFactory
userName
- The user namepassword
- The passwordjavax.jms.JMSException
- Thrown if the operation failspublic javax.jms.JMSContext createContext()
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(String userName, String password)
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(String userName, String password, int sessionMode)
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(int sessionMode)
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.XAJMSContext createXAContext()
createXAContext
in interface javax.jms.XAConnectionFactory
public javax.jms.XAJMSContext createXAContext(String userName, String password)
createXAContext
in interface javax.jms.XAConnectionFactory
public ActiveMQConnectionFactory getDefaultFactory() throws javax.resource.ResourceException
getDefaultFactory
in interface ActiveMQRAConnectionFactory
javax.resource.ResourceException
public ActiveMQResourceAdapter getResourceAdapter()
getResourceAdapter
in interface ActiveMQRAConnectionFactory
Copyright © 2016 The Apache Software Foundation. All rights reserved.