Download Oracle Streams Advanced Queuing User's Guide and Reference
Transcript
Getting a QueueConnectionFactory or TopicConnectionFactory
Parameter
Description
jdbc_url
URL to connect to
info
Properties information
Example 12–7
Getting a QueueConnectionFactory with JDBC URL
String
url
Properties info
QueueConnectionFactory
= "jdbc:oracle:oci10:internal/oracle"
= new Properties();
qc_fact;
info.put("internal_logon", "sysdba");
qc_fact = AQjmsFactory.getQueueConnectionFactory(url, info);
Getting a QueueConnectionFactory with JDBC Connection Parameters
public static javax.jms.QueueConnectionFactory getQueueConnectionFactory(
java.lang.String hostname,
java.lang.String oracle_sid,
int portno,
java.lang.String driver)
throws JMSException
This method gets a QueueConnectionFactory with JDBC connection parameters. It is
static and has the following parameters:
Parameter
Description
hostname
Name of the host running Oracle Database Advanced Queuing
oracle_sid
Oracle system identifier
portno
Port number
driver
JDBC driver type
Example 12–8
Getting a QueueConnectionFactory with JDBC Connection Parameters
String
host
String
ora_sid
String
driver
int
port
QueueConnectionFactory
= "dlsun";
= "rdbms10i"
= "thin";
= 5521;
qc_fact;
qc_fact = AQjmsFactory.getQueueConnectionFactory(host, ora_sid, port, driver);
Getting a TopicConnectionFactory with JDBC URL
public static javax.jms.QueueConnectionFactory getQueueConnectionFactory(
java.lang.String jdbc_url,
java.util.Properties info)
throws JMSException
This method gets a TopicConnectionFactory with a JDBC URL. It is static and has the
following parameters:
Parameter
Description
jdbc_url
URL to connect to
Oracle Java Message Service Basic Operations 12-7
Related documents
Oracle Streams Advanced Queuing User's Guide and Reference
Oracle Streams Advanced Queuing User's Guide and Reference
User Manual - centeractive
User Manual - centeractive
Oracle Database Gateway for DB2 Installation and User's Guide
自己管理データベース: 自動健全性監視および変更
Oracle 11g Streams Implementer`s Guide
Service & Support