org.openorb.ots.xa
Class XAVirtualDataSource
public
class
XAVirtualDataSource
extends Object
implements XADataSource
This class provides a virtual XA data source to manage an XA session without a jdbc driver
that includes optional packages of JDBC 2.0
Author: Jerome Daniel
Method Summary |
Logger | getLogger() |
int | getLoginTimeout()
Return the login timeout in seconds. |
PrintWriter | getLogWriter()
Return the log writer. |
String | getMetaData()
Return the DataSource meta data |
XAConnection | getXAConnection()
This operation is called to get an XA connection from a database. |
XAConnection | getXAConnection(String user, String password)
This operation is called to get an XA connection from a database by
providing user name and user password. |
void | setLoginTimeout(int seconds)
Set the login timeout in seconds. |
void | setLogWriter(PrintWriter out)
Set the log writer |
void | set_jdbc_url(String url)
This operation is used to set the JDBC URL required for the database access. |
public XAVirtualDataSource(ORB orb, Logger logger)
Constructor
public Logger getLogger()
public int getLoginTimeout()
Return the login timeout in seconds.
public PrintWriter getLogWriter()
Return the log writer.
public String getMetaData()
Return the DataSource meta data
public XAConnection getXAConnection()
This operation is called to get an XA connection from a database. The user name and user
password are taken from the OpenORB OTS properties file.
public XAConnection getXAConnection(String user, String password)
This operation is called to get an XA connection from a database by
providing user name and user password.
public void setLoginTimeout(int seconds)
Set the login timeout in seconds.
public void setLogWriter(PrintWriter out)
Set the log writer
public void set_jdbc_url(String url)
This operation is used to set the JDBC URL required for the database access.