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.ConnectionManagerWrapper
Wraps a Geronimo ConnectionManager and adds a  
NuxeoContainer.ConnectionManagerWrapper.reset() method to flush the pool. | 
static class  | 
NuxeoContainer.ConnectionTrackingCoordinator  | 
static class  | 
NuxeoContainer.InstallContext  | 
static class  | 
NuxeoContainer.TransactionManagerConfiguration  | 
static class  | 
NuxeoContainer.TransactionManagerWrapper
Wraps a transaction manager for providing a dummy recoverable interface. 
 | 
static class  | 
NuxeoContainer.UserTransactionImpl
User transaction that uses this container's transaction manager. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
addDeepBinding(String name,
              Object obj)
Bind object in root context. 
 | 
static void | 
addListener(NuxeoContainerListener listener)  | 
static org.apache.geronimo.connector.outbound.GenericConnectionManager | 
createConnectionManager(org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTracker tracker,
                       NuxeoConnectionManagerConfiguration config)
Creates a Geronimo pooled connection manager using a Geronimo transaction manager. 
 | 
static void | 
disposeConnectionManager(javax.resource.spi.ConnectionManager mgr)  | 
static javax.resource.spi.ConnectionManager | 
getConnectionManager(String repositoryName)
Gets the Nuxeo connection manager used by the container. 
 | 
static Context | 
getRootContext()
Exposes the  
rootContext. | 
static TransactionManager | 
getTransactionManager()
Gets the transaction manager used by the container. 
 | 
static TransactionSynchronizationRegistry | 
getTransactionSynchronizationRegistry()  | 
static UserTransaction | 
getUserTransaction()
Gets the user transaction used by the container. 
 | 
static NuxeoContainer.ConnectionManagerWrapper | 
initConnectionManager(NuxeoConnectionManagerConfiguration config)  | 
static NuxeoContainer.ConnectionManagerWrapper | 
installConnectionManager(NuxeoConnectionManagerConfiguration config)
Creates and installs in the container a new ConnectionManager. 
 | 
static void | 
installConnectionManager(NuxeoContainer.ConnectionManagerWrapper wrapper)  | 
static boolean | 
isInstalled()  | 
static <T> T | 
lookup(Context context,
      String name,
      Class<T> type)  | 
static <T> T | 
lookup(String name,
      Class<T> type)  | 
static String | 
nameOf(String name)  | 
static void | 
removeListener(NuxeoContainerListener listener)  | 
static void | 
resetConnectionManager()  | 
static void | 
resetConnectionManager(String name)  | 
public static NuxeoContainer.ConnectionManagerWrapper installConnectionManager(NuxeoConnectionManagerConfiguration config)
name - the repository nameconfig - the pool configurationpublic static boolean isInstalled()
public static void addListener(NuxeoContainerListener listener)
public static void removeListener(NuxeoContainerListener listener)
public static Context getRootContext()
rootContext.https://jira.nuxeo.com/browse/NXP-10331public static void addDeepBinding(String name, Object obj) throws NamingException
NamingExceptionpublic static TransactionManager getTransactionManager()
public static UserTransaction getUserTransaction()
public static javax.resource.spi.ConnectionManager getConnectionManager(String repositoryName)
public static void installConnectionManager(NuxeoContainer.ConnectionManagerWrapper wrapper)
public static NuxeoContainer.ConnectionManagerWrapper initConnectionManager(NuxeoConnectionManagerConfiguration config)
public static void disposeConnectionManager(javax.resource.spi.ConnectionManager mgr)
public static void resetConnectionManager(String name)
public static void resetConnectionManager()
public static <T> T lookup(String name, Class<T> type) throws NamingException
NamingExceptionpublic static <T> T lookup(Context context, String name, Class<T> type) throws NamingException
NamingExceptionpublic static org.apache.geronimo.connector.outbound.GenericConnectionManager createConnectionManager(org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTracker tracker,
                                                                                      NuxeoConnectionManagerConfiguration config)
The pool uses the transaction manager for recovery, and when using XATransactions for cache + enlist/delist.
NamingExceptionpublic static TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
Copyright © 2015 Nuxeo SA. All rights reserved.