org.objectweb.jotm.datasource
Class DataSourceFactory
java.lang.Object
org.objectweb.jotm.datasource.DataSourceFactory
- All Implemented Interfaces:
- ObjectFactory
public class DataSourceFactory
- extends Object
- implements ObjectFactory
This class is used when integrating JOTM with a servlet container like tomcat.
this factory must be declared for example in a context.xml file:
type="javax.sql.DataSource"
factory="org.objectweb.jotm.datasource.DataSourceFactory"
The jotm will be created at first use (static bloc)
Datasource are created by the XAPool module. (org.enhydra.jdbc packages)
- Author:
- jmesnil
|
Field Summary |
static org.objectweb.transaction.jta.TMService |
jotm
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jotm
public static org.objectweb.transaction.jta.TMService jotm
DataSourceFactory
public DataSourceFactory()
getObjectInstance
public Object getObjectInstance(Object obj,
Name n,
Context nameCtx,
Hashtable environment)
throws Exception
- Specified by:
getObjectInstance in interface ObjectFactory
- Throws:
Exception- See Also:
ObjectFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, ?>)
Copyright ? 2005-2009 OW2 Consortium. All Rights Reserved.