AQxmlDataSource - Oracle 9i

Syntax

Description

The AQ data source is used the specify the backend database to which the servlet connects to perform AQ operations. It contains the database SID, host name, listener port and the username/password of the AQ servlet super-user. The AQ servlet uses the JDBC-OCI driver to connect to the database. It creates a connection cache - the default size of the connection pool is 5.

AQxmlDataSource

Constructors

AQxmlDataSource(OracleOCIConnectionPool pool_ds)

public AQxmlDataSource(OracleOCIConnectionPool pool_ds)

Creates an AQ data source given an OCI connection pool

Parameters:

pool_ds - OCI connection pool

Throws:

AQxmlException - if fails to create a data source

AQxmlDataSource(String, String, String, String, String)

public AQxmlDataSource(java.lang.String user, java.lang.String password,
java.lang.String sid, java.lang.String host, java.lang.String port)

Creates an AQ data source

Parameters:

user - username
password - user password
sid - database SID
port - listener port

Throws:

AQxmlException - if fails to create a data source

Methods
getCacheSize()

public int getCacheSize()

Get the size of the connection cache

getDBDrv()

public java.lang.String getDBDrv()

Get the JDBC driver used by the data source

getHost()

public java.lang.String getHost()

Get the host name

getPort()

public java.lang.String getPort()

Get the listener port

getSid()

public java.lang.String getSid()

Get the database SID

setCacheSize(int)

public void setCacheSize(int csize)

Set the size of the connection cache

Parameters:

csize - cache size


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics