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

Constructor Summary
XAVirtualDataSource(ORB orb, Logger logger)
Constructor
Method Summary
LoggergetLogger()
intgetLoginTimeout()
Return the login timeout in seconds.
PrintWritergetLogWriter()
Return the log writer.
StringgetMetaData()
Return the DataSource meta data
XAConnectiongetXAConnection()
This operation is called to get an XA connection from a database.
XAConnectiongetXAConnection(String user, String password)
This operation is called to get an XA connection from a database by providing user name and user password.
voidsetLoginTimeout(int seconds)
Set the login timeout in seconds.
voidsetLogWriter(PrintWriter out)
Set the log writer
voidset_jdbc_url(String url)
This operation is used to set the JDBC URL required for the database access.

Constructor Detail

XAVirtualDataSource

public XAVirtualDataSource(ORB orb, Logger logger)
Constructor

Method Detail

getLogger

public Logger getLogger()

getLoginTimeout

public int getLoginTimeout()
Return the login timeout in seconds.

getLogWriter

public PrintWriter getLogWriter()
Return the log writer.

getMetaData

public String getMetaData()
Return the DataSource meta data

getXAConnection

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.

getXAConnection

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.

setLoginTimeout

public void setLoginTimeout(int seconds)
Set the login timeout in seconds.

setLogWriter

public void setLogWriter(PrintWriter out)
Set the log writer

set_jdbc_url

public void set_jdbc_url(String url)
This operation is used to set the JDBC URL required for the database access.