public class AQjmsFactory
extends java.lang.Object
AQjmsFactory is an adaptor for accessing Oracle JMS administered objects. This class is provider (Oracle) specific and is not a part of standard JMS specifications.
This class provides methods for looking up connection factories in the Oracle JMS namespace. For each type of connection factory, there are a number of methods available:
| Connection Factory Type | Caller-Provided Parameters | ||||
|---|---|---|---|---|---|
| Data Source | XA Data Source | Data Source + XA Resource Factory | Driver + Host + Port + SID | URL + Properties | |
ConnectionFactory |
X | X | X | ||
QueueConnectionFactory |
X | X | X | ||
TopicConnectionFactory |
X | X | X | ||
XAConnectionFactory |
X | X | X | X | |
XAQueueConnectionFactory |
X | X | X | X | |
XATopicConnectionFactory |
X | X | X | X | |
This class also provides methods for registering connection factories:
| Connection Type Caller-Provided Parameters | Database Access Caller-Provided Parameters | |
|---|---|---|
| Driver + Host + Port + SID | URL + Properties | |
| JDBC Connection | X | X |
| LDAP Environment | X | X |
This class also provides methods for unregistering connection factories:
| Connection Type Caller-Provided Parameters | |
|---|---|
| JDBC Connection | X |
| LDAP Environment | X |
| Constructor and Description |
|---|
AQjmsFactory()
Creates a new
AQjmsFactory object. |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionFactory |
getConnectionFactory(javax.sql.DataSource dataSource)
Gets a
ConnectionFactory using provided datasource. |
static ConnectionFactory |
getConnectionFactory(java.lang.String jdbcURL, java.util.Properties info)
Gets a
ConnectionFactory using provided URL/properties. |
static ConnectionFactory |
getConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver)
Gets a
ConnectionFactory using provided driver/host/port/SID. |
static QueueConnectionFactory |
getQueueConnectionFactory(javax.sql.DataSource dataSource)
Gets a
QueueConnectionFactory using provided datasource. |
static QueueConnectionFactory |
getQueueConnectionFactory(java.lang.String jdbcURL, java.util.Properties info)
Gets a
QueueConnectionFactory using provided URL/properties. |
static QueueConnectionFactory |
getQueueConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver)
Gets a
QueueConnectionFactory using provided driver/host/port/SID. |
static TopicConnectionFactory |
getTopicConnectionFactory(javax.sql.DataSource dataSource)
Gets a
TopicConnectionFactory using provided datasource. |
static TopicConnectionFactory |
getTopicConnectionFactory(java.lang.String jdbcURL, java.util.Properties info)
Gets a
TopicConnectionFactory using provided URL/properties. |
static TopicConnectionFactory |
getTopicConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver)
Gets a
TopicConnectionFactory using provided driver/host/port/SID. |
static XAConnectionFactory |
getXAConnectionFactory(javax.sql.DataSource dataSource, oracle.jms.AQjmsXAResourceFactory xaresFactory)
Gets an
XAConnectionFactory using provided datasource and XA resource factory. |
static XAConnectionFactory |
getXAConnectionFactory(java.lang.String jdbcURL, java.util.Properties info)
Gets an
XAConnectionFactory using provided URL/properties. |
static XAConnectionFactory |
getXAConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver)
Gets an
XAConnectionFactory using provided driver/host/port/SID. |
static XAConnectionFactory |
getXAConnectionFactory(javax.sql.XADataSource xadataSource)
Gets an
XAConnectionFactory using provided XA datasource. |
static XAQueueConnectionFactory |
getXAQueueConnectionFactory(javax.sql.DataSource dataSource, oracle.jms.AQjmsXAResourceFactory xaresFactory)
Gets an
XAQueueConnectionFactory using provided datasource and XA resource factory. |
static XAQueueConnectionFactory |
getXAQueueConnectionFactory(java.lang.String jdbcURL, java.util.Properties info)
Gets an
XAQueueConnectionFactory using provided URL/properties. |
static XAQueueConnectionFactory |
getXAQueueConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver)
Gets an
XAQueueConnectionFactory using provided driver/host/port/SID. |
static XAQueueConnectionFactory |
getXAQueueConnectionFactory(javax.sql.XADataSource xadataSource)
Gets an
XAQueueConnectionFactory using provided XA datasource. |
static XATopicConnectionFactory |
getXATopicConnectionFactory(javax.sql.DataSource dataSource, oracle.jms.AQjmsXAResourceFactory xaresFactory)
Gets an
XATopicConnectionFactory using provided datasource and XA resource factory. |
static XATopicConnectionFactory |
getXATopicConnectionFactory(java.lang.String jdbcURL, java.util.Properties info)
Gets an
XATopicConnectionFactory using provided URL/properties. |
static XATopicConnectionFactory |
getXATopicConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver)
Gets an
XATopicConnectionFactory using provided driver/host/port/SID. |
static XATopicConnectionFactory |
getXATopicConnectionFactory(javax.sql.XADataSource xadataSource)
Gets an
XATopicConnectionFactory using provided XA datasource. |
static int |
registerConnectionFactory(java.sql.Connection connection, java.lang.String connName, java.lang.String jdbcURL, java.util.Properties info, java.lang.String type)
Registers a connection factory to LDAP using provided JDBC connection + URL/properties.
|
static int |
registerConnectionFactory(java.sql.Connection connection, java.lang.String connName, java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver, java.lang.String type)
Registers a connection factory to LDAP using provided JDBC connection + driver/host/port/SID.
|
static int |
registerConnectionFactory(java.util.Hashtable env, java.lang.String connName, java.lang.String jdbcURL, java.util.Properties info, java.lang.String type)
Registers a connection factory to LDAP using provided environment + URL/properties.
|
static int |
registerConnectionFactory(java.util.Hashtable env, java.lang.String connName, java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver, java.lang.String type)
Registers a connection factory to LDAP using provided environment + driver/host/port/SID.
|
static int |
unregisterConnectionFactory(java.sql.Connection connection, java.lang.String connName)
Unregisters a connection factory from LDAP using provided JDBC connection.
|
static int |
unregisterConnectionFactory(java.util.Hashtable env, java.lang.String connName)
Unregisters a connection factory from LDAP using provided environment.
|
public AQjmsFactory()
AQjmsFactory object.
Do not use this constructor - do not create AQjmsFactory objects. AQjmsFactory objects are not required as all of the methods in this class are static.
public static ConnectionFactory getConnectionFactory(javax.sql.DataSource dataSource) throws JMSException
ConnectionFactory using provided datasource.dataSource - indicates the database to which the connection factory creates connectionsConnectionFactoryJMSException - if a connection factory is not retrieved due to some error.public static ConnectionFactory getConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver) throws JMSException
ConnectionFactory using provided driver/host/port/SID. The provided parameters indicate the database to which the connection factory creates connections.hostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc driverConnectionFactoryJMSException - if a connection factory is not retrieved due to some error.public static ConnectionFactory getConnectionFactory(java.lang.String jdbcURL, java.util.Properties info) throws JMSException
ConnectionFactory using provided URL/properties.jdbcURL - indicates the database to which the connection factory creates connectionsinfo - database connection propertiesConnectionFactoryJMSException - if a connection factory is not retrieved due to some error.public static QueueConnectionFactory getQueueConnectionFactory(javax.sql.DataSource dataSource) throws JMSException
QueueConnectionFactory using provided datasource.dataSource - indicates the database to which the connection factory creates connectionsQueueConnectionFactoryJMSException - if a queue connection factory is not retrieved due to some error.public static QueueConnectionFactory getQueueConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver) throws JMSException
QueueConnectionFactory using provided driver/host/port/SID. The provided parameters indicate the database to which the connection factory creates connections.hostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc driverQueueConnectionFactoryJMSException - if a queue connection factory is not retrieved due to some error.public static QueueConnectionFactory getQueueConnectionFactory(java.lang.String jdbcURL, java.util.Properties info) throws JMSException
QueueConnectionFactory using provided URL/properties.jdbcURL - indicates the database to which the connection factory creates connectionsinfo - database connection propertiesQueueConnectionFactoryJMSException - if a queue connection factory is not retrieved due to some error.public static TopicConnectionFactory getTopicConnectionFactory(javax.sql.DataSource dataSource) throws JMSException
TopicConnectionFactory using provided datasource.dataSource - indicates the database to which the connection factory creates connectionsTopicConnectionFactoryJMSException - if a topic connection factory is not retrieved due to some error.public static TopicConnectionFactory getTopicConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver) throws JMSException
TopicConnectionFactory using provided driver/host/port/SID. The provided parameters indicate the database to which the connection factory creates connections.hostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc driverTopicConnectionFactoryJMSException - if a topic connection factory is not retrieved due to some error.public static TopicConnectionFactory getTopicConnectionFactory(java.lang.String jdbcURL, java.util.Properties info) throws JMSException
TopicConnectionFactory using provided URL/properties.jdbcURL - indicates the database to which the connection factory creates connectionsinfo - database connection propertiesTopicConnectionFactoryJMSException - if a topic connection factory is not retrieved due to some error.public static XAConnectionFactory getXAConnectionFactory(javax.sql.XADataSource xadataSource) throws JMSException
XAConnectionFactory using provided XA datasource.xadataSource - indicates the database to which the connection factory creates connectionsXAConnectionFactoryJMSException - if an XA connection factory is not retrieved due to some error.public static XAConnectionFactory getXAConnectionFactory(javax.sql.DataSource dataSource, oracle.jms.AQjmsXAResourceFactory xaresFactory) throws JMSException
XAConnectionFactory using provided datasource and XA resource factory.dataSource - indicates the database to which the connection factory creates connectionsxaresFactory - AQjmsXAResourceFactory used to create customized XAResourceXAConnectionFactoryJMSException - if an XA connection factory is not retrieved due to some error.public static XAConnectionFactory getXAConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver) throws JMSException
XAConnectionFactory using provided driver/host/port/SID. The provided parameters indicate the database to which the connection factory creates connections.hostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc driverXAConnectionFactoryJMSException - if an XA connection factory is not retrieved due to some error.public static XAConnectionFactory getXAConnectionFactory(java.lang.String jdbcURL, java.util.Properties info) throws JMSException
XAConnectionFactory using provided URL/properties.jdbcURL - indicates the database to which the connection factory creates connectionsinfo - database connection propertiesXAConnectionFactoryJMSException - if an XA connection factory is not retrieved due to some error.public static XAQueueConnectionFactory getXAQueueConnectionFactory(javax.sql.XADataSource xadataSource) throws JMSException
XAQueueConnectionFactory using provided XA datasource.xadataSource - indicates the database to which the connection factory creates connectionsXAQueueConnectionFactoryJMSException - if an XA queue connection factory is not retrieved due to some error.public static XAQueueConnectionFactory getXAQueueConnectionFactory(javax.sql.DataSource dataSource, oracle.jms.AQjmsXAResourceFactory xaresFactory) throws JMSException
XAQueueConnectionFactory using provided datasource and XA resource factory.dataSource - indicates the database to which the connection factory creates connectionsxaresFactory - AQjmsXAResourceFactory used to create customized XAResourceXAQueueConnectionFactoryJMSException - if an XA queue connection factory is not retrieved due to some error.public static XAQueueConnectionFactory getXAQueueConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver) throws JMSException
XAQueueConnectionFactory using provided driver/host/port/SID. The provided parameters indicate the database to which the connection factory creates connections.hostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc driverXAQueueConnectionFactoryJMSException - if an XA queue connection factory is not retrieved due to some error.public static XAQueueConnectionFactory getXAQueueConnectionFactory(java.lang.String jdbcURL, java.util.Properties info) throws JMSException
XAQueueConnectionFactory using provided URL/properties.jdbcURL - indicates the database to which the connection factory creates connectionsinfo - database connection propertiesXAQueueConnectionFactoryJMSException - if an XA queue connection factory is not retrieved due to some error.public static XATopicConnectionFactory getXATopicConnectionFactory(javax.sql.XADataSource xadataSource) throws JMSException
XATopicConnectionFactory using provided XA datasource.xadataSource - indicates the database to which the connection factory creates connectionsXATopicConnectionFactoryJMSException - if an XA topic connection factory is not retrieved due to some error.public static XATopicConnectionFactory getXATopicConnectionFactory(javax.sql.DataSource dataSource, oracle.jms.AQjmsXAResourceFactory xaresFactory) throws JMSException
XATopicConnectionFactory using provided datasource and XA resource factory.dataSource - indicates the database to which the connection factory creates connectionsxaresFactory - AQjmsXAResourceFactory used to create customized XAResourceXATopicConnectionFactoryJMSException - if an XA topic connection factory is not retrieved due to some error.public static XATopicConnectionFactory getXATopicConnectionFactory(java.lang.String hostName, java.lang.String oracleSID, int portNumber, java.lang.String driver) throws JMSException
XATopicConnectionFactory using provided driver/host/port/SID. The provided parameters indicate the database to which the connection factory creates connections.hostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc driverXATopicConnectionFactoryJMSException - if an XA topic connection factory is not retrieved due to some error.public static XATopicConnectionFactory getXATopicConnectionFactory(java.lang.String jdbcURL, java.util.Properties info) throws JMSException
XATopicConnectionFactory using provided URL/properties.jdbcURL - indicates the database to which the connection factory creates connectionsinfo - database connection propertiesXATopicConnectionFactoryJMSException - if an XA topic connection factory is not retrieved due to some error.public static int registerConnectionFactory(java.sql.Connection connection,
java.lang.String connName,
java.lang.String hostName,
java.lang.String oracleSID,
int portNumber,
java.lang.String driver,
java.lang.String type)
throws JMSException
connection - the JDBC connection used to perform the registration operationconnName - the name of the to-be-registered connection factoryhostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc drivertype - "QUEUE" or "TOPIC"LDAP_SUCCESS if succeededJMSException - if a connection factory is not registered due to some error.public static int registerConnectionFactory(java.sql.Connection connection,
java.lang.String connName,
java.lang.String jdbcURL,
java.util.Properties info,
java.lang.String type)
throws JMSException
connection - the JDBC connection used to perform the registration operationconnName - the name of the to-be-registered connection factoryjdbcURL - URL to connect toinfo - database connection properties ("user"/"password")type - "QUEUE" or "TOPIC"LDAP_SUCCESS if succeededJMSException - if a connection factory is not registered due to some error.public static int registerConnectionFactory(java.util.Hashtable env,
java.lang.String connName,
java.lang.String hostName,
java.lang.String oracleSID,
int portNumber,
java.lang.String driver,
java.lang.String type)
throws JMSException
env - the environment of LDAP connectionconnName - the name of the to-be-registered connection factoryhostName - the name of the host running oracleoracleSID - the oracle system identifierportNumber - the port numberdriver - the type of jdbc drivertype - "QUEUE" or "TOPIC"LDAP_SUCCESS if succeededJMSException - if a connection factory is not registered due to some error.public static int registerConnectionFactory(java.util.Hashtable env,
java.lang.String connName,
java.lang.String jdbcURL,
java.util.Properties info,
java.lang.String type)
throws JMSException
env - the environment of LDAP connectionconnName - the name of the to-be-registered connection factoryjdbcURL - URL to connect toinfo - database connection properties ("user"/"password")type - "QUEUE" or "TOPIC"LDAP_SUCCESS if succeededJMSException - if a connection factory is not registered due to some error.public static int unregisterConnectionFactory(java.sql.Connection connection,
java.lang.String connName)
throws JMSException
connection - the JDBC connection used to perform the unregistration operationconnName - the name of the to-be-unregistered connection factoryLDAP_SUCCESS if succeededJMSException - if a connection factory is not unregistered due to some error.public static int unregisterConnectionFactory(java.util.Hashtable env,
java.lang.String connName)
throws JMSException
env - the environment of LDAP connectionconnName - the name of the to-be-unregistered connection factoryLDAP_SUCCESS if succeededJMSException - if a connection factory is not unregistered due to some error.