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 java.lang.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 javax.resource.spi.ConnectionManager getConnectionManager()
           
static javax.transaction.TransactionManager getTransactionManager()
           
static javax.transaction.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 javax.naming.NamingException
Throws:
javax.naming.NamingException

getTransactionManager

public static javax.transaction.TransactionManager getTransactionManager()

getUserTransaction

public static javax.transaction.UserTransaction getUserTransaction()
                                                            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getConnectionManager

public static javax.resource.spi.ConnectionManager getConnectionManager()

initTransactionManager

public static void initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config)

initConnectionManager

public static void initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration config)
                                  throws javax.naming.NamingException
Throws:
javax.naming.NamingException

resetConnectionManager

public static void resetConnectionManager()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

initTransactionManagement

public static void initTransactionManagement()
                                      throws javax.naming.NamingException
Throws:
javax.naming.NamingException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.