Oracle® Streams Advanced Queuing Java API Reference
Release 1 (10.1)

B12023-01

oracle.jms
Class AQjmsFactory

java.lang.Object
  |
  +--oracle.jms.AQjmsFactory

public class AQjmsFactory
extends java.lang.Object

Class AQjmsFactory is an Adaptor for accessing administered Objects in JMS namespace with Oracle's implementation of JMS. This class is provider (Oracle) specific and is not a part of standard JMS specifications. This class provides accessor methods for looking up Queue/Topic Connection Factories in JMS namespace.


Constructor Summary
AQjmsFactory()
           

 

Method Summary
static javax.jms.ConnectionFactory getConnectionFactory(javax.sql.DataSource dsobj)
          get a Connection Factory
static javax.jms.ConnectionFactory getConnectionFactory(javax.sql.DataSource dsobj, boolean compliant)
          settable compliant version of the above method
static javax.jms.ConnectionFactory getConnectionFactory(java.lang.String jdbc_url, java.util.Properties info)
          get a Connection Factory
static javax.jms.ConnectionFactory getConnectionFactory(java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver)
          get a Connection Factory
static javax.jms.QueueConnectionFactory getQueueConnectionFactory(javax.sql.DataSource dsobj)
          get a Queue Connection Factory
static javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String jdbc_url, java.util.Properties info)
          get a Queue Connection Factory
static javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver)
          get a Queue Connection Factory
static javax.jms.TopicConnectionFactory getTopicConnectionFactory(javax.sql.DataSource dsobj)
          get a Topic Connection Factory
static javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String jdbc_url, java.util.Properties info)
          get a Topic Connection Factory
static javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver)
          get a Topic Connection Factory
static javax.jms.XAConnectionFactory getXAConnectionFactory(java.lang.String jdbc_url, java.util.Properties info)
          get a XAConnectionFactory
static javax.jms.XAConnectionFactory getXAConnectionFactory(java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver)
          get a XAConnectionFactory
static javax.jms.XAConnectionFactory getXAConnectionFactory(javax.sql.XADataSource xaDS)
          get a XAConnectionFactory
static javax.jms.XAConnectionFactory getXAConnectionFactory(javax.sql.XADataSource xaDS, boolean compliant)
          settable compliant version of the above method
static javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(java.lang.String jdbc_url, java.util.Properties info)
          get a XAQueueConnectionFactory
static javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver)
          get a XAQueueConnectionFactory
static javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(javax.sql.XADataSource xaDS)
          get a XAQueueConnectionFactory
static javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(java.lang.String jdbc_url, java.util.Properties info)
          get a XATopicConnectionFactory
static javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver)
          get a XATopicConnectionFactory
static javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(javax.sql.XADataSource xaDS)
          get a XATopicConnectionFactory
static int registerConnectionFactory(java.sql.Connection connection, java.lang.String conn_name, java.lang.String jdbc_url, java.util.Properties info, java.lang.String type)
          Register a Connection Factory to LDAP
static int registerConnectionFactory(java.sql.Connection connection, java.lang.String conn_name, java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver, java.lang.String type)
          Register a Connection Factory to LDAP
static int registerConnectionFactory(java.util.Hashtable env, java.lang.String conn_name, java.lang.String jdbc_url, java.util.Properties info, java.lang.String type)
          Register a Queue Connection Factory to LDAP
static int registerConnectionFactory(java.util.Hashtable env, java.lang.String conn_name, java.lang.String hostname, java.lang.String oracle_sid, int portno, java.lang.String driver, java.lang.String type)
          Register a Connection Factory to LDAP
static int unregisterConnectionFactory(java.sql.Connection connection, java.lang.String conn_name)
          Unregister a Connection Factory from LDAP
static int unregisterConnectionFactory(java.util.Hashtable env, java.lang.String conn_name)
          Unregister a Connection Factory from LDAP

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

AQjmsFactory

public AQjmsFactory()
Method Detail

getQueueConnectionFactory

public static javax.jms.QueueConnectionFactory getQueueConnectionFactory(javax.sql.DataSource dsobj)
                                                                  throws JMSException
get a Queue Connection Factory
Parameters:
dsobj - datasource object
Returns:
a Queue Connection Factory
Throws:
JMSException - if JMS fails to get a queue connection factory due to some JMS error

getQueueConnectionFactory

public static javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String hostname,
                                                                         java.lang.String oracle_sid,
                                                                         int portno,
                                                                         java.lang.String driver)
                                                                  throws JMSException
get a Queue Connection Factory
Parameters:
hostname - the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver
Returns:
a Queue Connection Factory
Throws:
JMSException - if JMS fails to get a queue connection factory due to some JMS error

getQueueConnectionFactory

public static javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String jdbc_url,
                                                                         java.util.Properties info)
                                                                  throws JMSException
get a Queue Connection Factory
Parameters:
jdbc_url - url to connect to info properties information
Returns:
a Queue Connection Factory
Throws:
JMSException - if JMS fails to get a queue connection factory due to some JMS error

getTopicConnectionFactory

public static javax.jms.TopicConnectionFactory getTopicConnectionFactory(javax.sql.DataSource dsobj)
                                                                  throws JMSException
get a Topic Connection Factory
Parameters:
dsobj - datasource object
Returns:
a Topic Connection Factory
Throws:
JMSException - if JMS fails to get a Topic connection factory due to some JMS error

getTopicConnectionFactory

public static javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String hostname,
                                                                         java.lang.String oracle_sid,
                                                                         int portno,
                                                                         java.lang.String driver)
                                                                  throws JMSException
get a Topic Connection Factory
Parameters:
hostname - the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver
Returns:
a Topic Connection Factory
Throws:
JMSException - if JMS fails to get a queue connection factory due to some JMS error

getTopicConnectionFactory

public static javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String jdbc_url,
                                                                         java.util.Properties info)
                                                                  throws JMSException
get a Topic Connection Factory
Parameters:
jdbc_url - url to connect to info properties information
Returns:
a Topic Connection Factory
Throws:
JMSException - if JMS fails to get a queue connection factory due to some JMS error

registerConnectionFactory

public static int registerConnectionFactory(java.sql.Connection connection,
                                            java.lang.String conn_name,
                                            java.lang.String hostname,
                                            java.lang.String oracle_sid,
                                            int portno,
                                            java.lang.String driver,
                                            java.lang.String type)
                                     throws JMSException
Register a Connection Factory to LDAP
Parameters:
connection - the JDBC connection used in registration conn_name the name of the to-be-registered connection hostname the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver type QUEUE or TOPIC
Returns:
an LDAP error code in case of error, LDAP_SUCESS if succeeded
Throws:
JMSException - if JMS fails to register a connection factory

registerConnectionFactory

public static int registerConnectionFactory(java.sql.Connection connection,
                                            java.lang.String conn_name,
                                            java.lang.String jdbc_url,
                                            java.util.Properties info,
                                            java.lang.String type)
                                     throws JMSException
Register a Connection Factory to LDAP
Parameters:
connection - the JDBC connection used in registration conn_name the name of the to-be-registered connection jdbc_url url to connect to info properties information type queue or topic
Returns:
an LDAP error code in case of error, LDAP_SUCESS if succeeded
Throws:
JMSException - if JMS fails to register a connection factory

unregisterConnectionFactory

public static int unregisterConnectionFactory(java.sql.Connection connection,
                                              java.lang.String conn_name)
                                       throws JMSException
Unregister a Connection Factory from LDAP
Parameters:
connection - the JDBC connection used in registration conn_name the name of the to-be-unregistered connection
Returns:
an LDAP error code in case of error, LDAP_SUCESS if succeeded
Throws:
JMSException - if JMS fails to unregister a connection factory

registerConnectionFactory

public static int registerConnectionFactory(java.util.Hashtable env,
                                            java.lang.String conn_name,
                                            java.lang.String hostname,
                                            java.lang.String oracle_sid,
                                            int portno,
                                            java.lang.String driver,
                                            java.lang.String type)
                                     throws JMSException
Register a Connection Factory to LDAP
Parameters:
env - the environment of LDAP connection conn_name the name of the to-be-registered connection hostname the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver type queue or topic
Returns:
an LDAP error code in case of error, LDAP_SUCESS if succeeded
Throws:
JMSException - if JMS fails to register a connection factory

registerConnectionFactory

public static int registerConnectionFactory(java.util.Hashtable env,
                                            java.lang.String conn_name,
                                            java.lang.String jdbc_url,
                                            java.util.Properties info,
                                            java.lang.String type)
                                     throws JMSException
Register a Queue Connection Factory to LDAP
Parameters:
env - the environment of LDAP connection conn_name the name of the to-be-registered connection jdbc_url url to connect to info properties information type queue or topic
Returns:
an LDAP error code in case of error, LDAP_SUCESS if succeeded
Throws:
JMSException - if JMS fails to register a connection factory

unregisterConnectionFactory

public static int unregisterConnectionFactory(java.util.Hashtable env,
                                              java.lang.String conn_name)
                                       throws JMSException
Unregister a Connection Factory from LDAP
Returns:
an LDAP error code in case of error, LDAP_SUCESS if succeeded
Throws:
JMSException - if JMS fails to unregister a connection factory

getConnectionFactory

public static javax.jms.ConnectionFactory getConnectionFactory(javax.sql.DataSource dsobj)
                                                        throws JMSException
get a Connection Factory
Parameters:
dsobj - datasource object
Returns:
a Connection Factory
Throws:
JMSException - if JMS fails to get a connection factory due to some JMS error

getConnectionFactory

public static javax.jms.ConnectionFactory getConnectionFactory(javax.sql.DataSource dsobj,
                                                               boolean compliant)
                                                        throws JMSException
settable compliant version of the above method
JMSException

getConnectionFactory

public static javax.jms.ConnectionFactory getConnectionFactory(java.lang.String hostname,
                                                               java.lang.String oracle_sid,
                                                               int portno,
                                                               java.lang.String driver)
                                                        throws JMSException
get a Connection Factory
Parameters:
hostname - the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver
Returns:
a Connection Factory
Throws:
JMSException - if JMS fails to get a connection factory due to some JMS error

getConnectionFactory

public static javax.jms.ConnectionFactory getConnectionFactory(java.lang.String jdbc_url,
                                                               java.util.Properties info)
                                                        throws JMSException
get a Connection Factory
Parameters:
jdbc_url - url to connect to info properties information
Returns:
a Connection Factory
Throws:
JMSException - if JMS fails to get a connection factory due to some JMS error

getXAConnectionFactory

public static javax.jms.XAConnectionFactory getXAConnectionFactory(javax.sql.XADataSource xaDS)
                                                            throws JMSException
get a XAConnectionFactory
Parameters:
xaDS - XADataSource object
Returns:
a XAConnectionFactory
Throws:
JMSException - if JMS fails to get a XAConnectionFactory due to some JMS error

getXAConnectionFactory

public static javax.jms.XAConnectionFactory getXAConnectionFactory(javax.sql.XADataSource xaDS,
                                                                   boolean compliant)
                                                            throws JMSException
settable compliant version of the above method
JMSException

getXAConnectionFactory

public static javax.jms.XAConnectionFactory getXAConnectionFactory(java.lang.String hostname,
                                                                   java.lang.String oracle_sid,
                                                                   int portno,
                                                                   java.lang.String driver)
                                                            throws JMSException
get a XAConnectionFactory
Parameters:
hostname - the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver
Returns:
a XAConnectionFactory
Throws:
JMSException - if JMS fails to get a XAConnectionFactory due to some JMS error

getXAConnectionFactory

public static javax.jms.XAConnectionFactory getXAConnectionFactory(java.lang.String jdbc_url,
                                                                   java.util.Properties info)
                                                            throws JMSException
get a XAConnectionFactory
Parameters:
jdbc_url - url to connect to info properties information
Returns:
a XAConnectionFactory
Throws:
JMSException - if JMS fails to get a XAConnectionFactory due to some JMS error

getXAQueueConnectionFactory

public static javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(javax.sql.XADataSource xaDS)
                                                                      throws JMSException
get a XAQueueConnectionFactory
Parameters:
xaDS - XADataSource object
Returns:
a XAQueueConnectionFactory
Throws:
JMSException - if JMS fails to get a XAQueueConnectionFactory due to some JMS error

getXAQueueConnectionFactory

public static javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(java.lang.String hostname,
                                                                             java.lang.String oracle_sid,
                                                                             int portno,
                                                                             java.lang.String driver)
                                                                      throws JMSException
get a XAQueueConnectionFactory
Parameters:
hostname - the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver
Returns:
a XAQueueConnectionFactory
Throws:
JMSException - if JMS fails to get a XAQueueConnectionFactory due to some JMS error

getXAQueueConnectionFactory

public static javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(java.lang.String jdbc_url,
                                                                             java.util.Properties info)
                                                                      throws JMSException
get a XAQueueConnectionFactory
Parameters:
jdbc_url - url to connect to info properties information
Returns:
a XAQueueConnectionFactory
Throws:
JMSException - if JMS fails to get a XAQueueConnectionFactory due to some JMS error

getXATopicConnectionFactory

public static javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(javax.sql.XADataSource xaDS)
                                                                      throws JMSException
get a XATopicConnectionFactory
Parameters:
xaDS - XADataSource object
Returns:
a XATopicConnectionFactory
Throws:
JMSException - if JMS fails to get a XATopicConnectionFactory due to some JMS error

getXATopicConnectionFactory

public static javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(java.lang.String hostname,
                                                                             java.lang.String oracle_sid,
                                                                             int portno,
                                                                             java.lang.String driver)
                                                                      throws JMSException
get a XATopicConnectionFactory
Parameters:
hostname - the name of the host running oracle oracle_sid the oracle system identifier portno the port number driver the type of jdbc driver
Returns:
a XATopicConnectionFactory
Throws:
JMSException - if JMS fails to get a XATopicConnectionFactory due to some JMS error

getXATopicConnectionFactory

public static javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(java.lang.String jdbc_url,
                                                                             java.util.Properties info)
                                                                      throws JMSException
get a XATopicConnectionFactory
Parameters:
jdbc_url - url to connect to info properties information
Returns:
a XATopicConnectionFactory
Throws:
JMSException - if JMS fails to get a XATopicConnectionFactory due to some JMS error

Oracle® Streams Advanced Queuing Java API Reference
Release 1 (10.1)

B12023-01

Copyright © 2003, Oracle. All Rights Reserved.