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 Referenceablepublic javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
createQueueConnection in interface javax.jms.QueueConnectionFactoryjavax.jms.JMSException - Thrown if the operation failspublic javax.jms.QueueConnection createQueueConnection(String userName, String password) throws javax.jms.JMSException
createQueueConnection in interface javax.jms.QueueConnectionFactoryuserName - 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.TopicConnectionFactoryjavax.jms.JMSException - Thrown if the operation failspublic javax.jms.TopicConnection createTopicConnection(String userName, String password) throws javax.jms.JMSException
createTopicConnection in interface javax.jms.TopicConnectionFactoryuserName - 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.ConnectionFactoryjavax.jms.JMSException - Thrown if the operation failspublic javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactoryuserName - 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.XAQueueConnectionFactoryjavax.jms.JMSException - Thrown if the operation failspublic javax.jms.XAQueueConnection createXAQueueConnection(String userName, String password) throws javax.jms.JMSException
createXAQueueConnection in interface javax.jms.XAQueueConnectionFactoryuserName - 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.XATopicConnectionFactoryjavax.jms.JMSException - Thrown if the operation failspublic javax.jms.XATopicConnection createXATopicConnection(String userName, String password) throws javax.jms.JMSException
createXATopicConnection in interface javax.jms.XATopicConnectionFactoryuserName - 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.XAConnectionFactoryjavax.jms.JMSException - Thrown if the operation failspublic javax.jms.XAConnection createXAConnection(String userName, String password) throws javax.jms.JMSException
createXAConnection in interface javax.jms.XAConnectionFactoryuserName - The user namepassword - The passwordjavax.jms.JMSException - Thrown if the operation failspublic javax.jms.JMSContext createContext()
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.JMSContext createContext(String userName, String password)
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.JMSContext createContext(String userName, String password, int sessionMode)
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.JMSContext createContext(int sessionMode)
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.XAJMSContext createXAContext()
createXAContext in interface javax.jms.XAConnectionFactorypublic javax.jms.XAJMSContext createXAContext(String userName, String password)
createXAContext in interface javax.jms.XAConnectionFactorypublic ActiveMQConnectionFactory getDefaultFactory() throws javax.resource.ResourceException
getDefaultFactory in interface ActiveMQRAConnectionFactoryjavax.resource.ResourceExceptionpublic ActiveMQResourceAdapter getResourceAdapter()
getResourceAdapter in interface ActiveMQRAConnectionFactoryCopyright © 2020 The Apache Software Foundation. All Rights Reserved.