org.nuxeo.runtime.jtajca
Class NuxeoContainer
java.lang.Object
org.nuxeo.runtime.jtajca.NuxeoContainer
public class NuxeoContainer
- extends 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.
install
public static void install()
throws NamingException
- Throws:
NamingException
getTransactionManager
public static TransactionManager getTransactionManager()
getUserTransaction
public static UserTransaction getUserTransaction()
throws NamingException
- Throws:
NamingException
getConnectionManager
public static ConnectionManager getConnectionManager()
initTransactionManager
public static void initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config)
initConnectionManager
public static void initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration config)
throws NamingException
- Throws:
NamingException
resetConnectionManager
public static void resetConnectionManager()
throws Exception
- Throws:
Exception
initTransactionManagement
public static void initTransactionManagement()
throws NamingException
- Throws:
NamingException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.