org.nuxeo.runtime.jtajca
Class NuxeoContainer
java.lang.Object
org.nuxeo.runtime.jtajca.NuxeoContainer
public class NuxeoContainer
- extends java.lang.Object
Internal helper for the Nuxeo-defined transaction manager and connection
manager.
This code is called by the factories registered through JNDI, or by unit
tests mimicking JNDI bindings.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
install
public static void install()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getTransactionManager
public static javax.transaction.TransactionManager getTransactionManager()
getUserTransaction
public static javax.transaction.UserTransaction getUserTransaction()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getConnectionManager
public static javax.resource.spi.ConnectionManager getConnectionManager()
initTransactionManager
public static void initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config)
initConnectionManager
public static void initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration config)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
resetConnectionManager
public static void resetConnectionManager()
throws java.lang.Exception
- Throws:
java.lang.Exception
initTransactionManagement
public static void initTransactionManagement()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.