Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.jtajca
Class NuxeoContainer

java.lang.Object
  extended by 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.


Nested Class Summary
static class NuxeoContainer.ConnectionManagerConfiguration
           
static class NuxeoContainer.ConnectionManagerWrapper
          Wraps a geronimo cm to be able to flush the pool.
static class NuxeoContainer.TransactionManagerConfiguration
           
 
Method Summary
static ConnectionManager getConnectionManager()
           
static TransactionManager getTransactionManager()
           
static UserTransaction getUserTransaction()
           
static void initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration config)
           
static void initTransactionManagement()
           
static void initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config)
           
static void install()
           
static void resetConnectionManager()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.