|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jms.AQjmsFactory
Class 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, as represented in the following table:
Connection Factory Type | Data Source | XA Data Source | Data Source + XA Resource Factory | Driver + Host + Port + SID | URL + Properties |
---|---|---|---|---|---|
ConnectionFactory |
supported | no | no | supported | supported |
QueueConnectionFactory |
supported | no | no | supported | supported |
TopicConnectionFactory |
supported | no | no | supported | supported |
XAConnectionFactory |
no | supported | supported | supported | supported |
XAQueueConnectionFactory |
no | supported | supported | supported | supported |
XATopicConnectionFactory |
no | supported | supported | supported | supported |
This class also provides methods for registering connection factories, as represented in the following table:
Connection Type Caller-Provided Parameters |
Driver + Host + Port + SID | URL + Properties |
---|---|---|
JDBC Connection | supported | supported |
LDAP Environment | supported | supported |
This class also provides methods for unregistering connection factories, as represented in the following table:
Connection Type Caller-Provided Parameters |
All Data Access Caller-Supplied Paramters |
---|---|
JDBC Connection | supported |
LDAP Environment | supported |
Constructor Summary | |
AQjmsFactory() Creates a new AQjmsFactory object. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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
.
Method Detail |
public static ConnectionFactory getConnectionFactory(javax.sql.DataSource dataSource) throws JMSException
ConnectionFactory
using provided datasource.dataSource
- indicates the database to which the connection factory creates connectionsConnectionFactory
JMSException
- 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 driverConnectionFactory
JMSException
- 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 propertiesConnectionFactory
JMSException
- 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 connectionsQueueConnectionFactory
JMSException
- 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 driverQueueConnectionFactory
JMSException
- 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 propertiesQueueConnectionFactory
JMSException
- 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 connectionsTopicConnectionFactory
JMSException
- 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 driverTopicConnectionFactory
JMSException
- 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 propertiesTopicConnectionFactory
JMSException
- 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 connectionsXAConnectionFactory
JMSException
- 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 XAResource
XAConnectionFactory
JMSException
- 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 driverXAConnectionFactory
JMSException
- 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 propertiesXAConnectionFactory
JMSException
- 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 connectionsXAQueueConnectionFactory
JMSException
- 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 XAResource
XAQueueConnectionFactory
JMSException
- 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 driverXAQueueConnectionFactory
JMSException
- 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 propertiesXAQueueConnectionFactory
JMSException
- 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 connectionsXATopicConnectionFactory
JMSException
- 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 XAResource
XATopicConnectionFactory
JMSException
- 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 driverXATopicConnectionFactory
JMSException
- 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 propertiesXATopicConnectionFactory
JMSException
- 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.
|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |