public class NuxeoContainer extends Object
This code is called by the factories registered through JNDI, or by unit tests mimicking JNDI bindings.
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static String |
JNDI_NUXEO_CONNECTION_MANAGER |
static String |
JNDI_TRANSACTION_MANAGER |
static String |
JNDI_USER_TRANSACTION |
Modifier and Type | Method and Description |
---|---|
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() |
public static final String JNDI_TRANSACTION_MANAGER
public static final String JNDI_USER_TRANSACTION
public static final String JNDI_NUXEO_CONNECTION_MANAGER
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 configurationNamingException
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
Copyright © 2011 Nuxeo SA. All Rights Reserved.