org.objectweb.jonas.dbm
Class JonasOracleXADataSource
org.objectweb.jonas.dbm.JonasOracleXADataSource
- All Implemented Interfaces:
- CommonDataSource, javax.naming.spi.ObjectFactory, javax.naming.Referenceable
- public class JonasOracleXADataSource
- implements javax.naming.Referenceable, javax.naming.spi.ObjectFactory, CommonDataSource
To compile this class, you must have the classes12.zip file
from Oracle (driver JDBC 2.0 with Oracle 8.1.6 version),
and add the current file to the build mechanism (Makefile)
We have to use specific method from oracle driver to set up
the user name of the DB.
The driverName (see StandardDataSource) is not used. We supposed
that the driver does the work for us.
We have to define getReference and getObjectInstance for JNDI
lookup in the poolDataSource (xa)
Method Summary |
void |
setProperties(java.lang.String url,
java.lang.String classname,
java.lang.String user,
java.lang.String password)
|
Methods inherited from interface javax.naming.Referenceable |
getReference |
Methods inherited from interface javax.naming.spi.ObjectFactory |
getObjectInstance |
JonasOracleXADataSource
public JonasOracleXADataSource()
throws java.sql.SQLException
setProperties
public void setProperties(java.lang.String url,
java.lang.String classname,
java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
setProperties
in interface CommonDataSource