|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.jtajca.NuxeoContainer
public class NuxeoContainer
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.
Nested Class Summary | |
---|---|
static class |
NuxeoContainer.ConnectionManagerConfiguration
|
static class |
NuxeoContainer.ConnectionManagerWrapper
Wraps a Geronimo ConnectionManager and adds a NuxeoContainer.ConnectionManagerWrapper.reset() method to
flush the pool. |
static class |
NuxeoContainer.TransactionManagerConfiguration
|
static class |
NuxeoContainer.TransactionManagerWrapper
Wraps a transaction manager for providing a dummy recoverable interface. |
Field Summary | |
---|---|
static String |
JNDI_NUXEO_CONNECTION_MANAGER
|
static String |
JNDI_TRANSACTION_MANAGER
|
static String |
JNDI_USER_TRANSACTION
|
Method Summary | |
---|---|
static ConnectionManager |
getConnectionManager()
Gets the Nuxeo connection manager used by the container. |
static TransactionManager |
getTransactionManager()
Gets the transaction manager used by the container. |
static UserTransaction |
getUserTransaction()
Gets the user transaction used by the container. |
static void |
initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration config)
|
static void |
initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config)
|
static void |
install()
Install transaction and connection management "by hand" if the container didn't do it using file-based configuration. |
static void |
install(NuxeoContainer.TransactionManagerConfiguration txconfig,
NuxeoContainer.ConnectionManagerConfiguration cmconfig)
Install transaction and connection management "by hand" if the container didn't do it using file-based configuration. |
static boolean |
isInstalled()
|
static void |
resetConnectionManager()
|
static void |
uninstall()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JNDI_TRANSACTION_MANAGER
public static final String JNDI_USER_TRANSACTION
public static final String JNDI_NUXEO_CONNECTION_MANAGER
Method Detail |
---|
public static void install() throws NamingException
NamingException
public static void install(NuxeoContainer.TransactionManagerConfiguration txconfig, NuxeoContainer.ConnectionManagerConfiguration cmconfig) throws NamingException
txconfig
- the transaction manager configurationcmconfig
- the connection manager configuration
NamingException
public static boolean isInstalled()
public static void uninstall() throws NamingException
NamingException
public static TransactionManager getTransactionManager()
public static UserTransaction getUserTransaction() throws NamingException
NamingException
public static ConnectionManager getConnectionManager()
public static void initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config) throws NamingException
NamingException
public static void initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration config) throws NamingException
NamingException
public static void resetConnectionManager() throws Exception
Exception
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |