|
DODS 7.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.dods.jts.LocalContextFactory
public class LocalContextFactory
LocalContextFactory
Field Summary | |
---|---|
static java.lang.String |
DSNAMES_PARAM_NAME
Name of the system property whose value determines what datasources to create. |
static java.lang.String |
PROVIDERS2START_PARAM_NAME
Name of the system property whose value determines which transaction manager implementation to start and use. |
Constructor Summary | |
---|---|
LocalContextFactory()
|
Method Summary | |
---|---|
javax.naming.Context |
getInitialContext(java.util.Hashtable properties)
|
static void |
main(java.lang.String[] args)
|
static javax.naming.Context |
setup(java.lang.String datasourceNames)
An utility method, to override (or ignore absence of) system properties. |
static javax.naming.Context |
setup(java.lang.String providers2start,
java.lang.String datasourceNames)
An utility method, to override (or ignore absence of) system properties. |
static void |
shutdown()
An utility method to allow providers clean all resources allocated during startup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String PROVIDERS2START_PARAM_NAME
If value isn't recognized (one of jotm, jbossts), no transaction manager will be started. Name of the system property whose value determines which datasource pool implementation to use.
If value isn't xapool no pool will be started.
public static java.lang.String DSNAMES_PARAM_NAME
Value should be comma-separated list of names. Each name is than used to load a property file to initialize datasource.
Constructor Detail |
---|
public LocalContextFactory()
Method Detail |
---|
public static javax.naming.Context setup(java.lang.String datasourceNames) throws javax.naming.NamingException
datasourceNames
- comma-separated list of datasource names
(properties file following javax.naming.NamingException
public static void shutdown() throws javax.naming.NamingException
javax.naming.NamingException
public static javax.naming.Context setup(java.lang.String providers2start, java.lang.String datasourceNames) throws javax.naming.NamingException
You have to provide transaction manager name, pool implementation name and a list of datasource names.
providers2start
- comma separated list of provider names to startdatasourceNames
- comma-separated list of datasource names
javax.naming.NamingException
public javax.naming.Context getInitialContext(java.util.Hashtable properties) throws javax.naming.NamingException
getInitialContext
in interface javax.naming.spi.InitialContextFactory
javax.naming.NamingException
public static void main(java.lang.String[] args) throws javax.naming.NamingException
javax.naming.NamingException
|
DODS 7.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |