Search in sources :

Example 1 with TransactionManager

use of org.unidal.dal.jdbc.transaction.TransactionManager in project x-pipe by ctripcorp.

the class DalTransactionAspect method postConstruct.

@PostConstruct
private void postConstruct() {
    try {
        transactionManager = ContainerLoader.getDefaultContainer().lookup(TransactionManager.class, ROLE_HINT);
        logger.info("[postConstruct]Load TransactionManager: {}", transactionManager.getClass());
    } catch (ComponentLookupException e) {
        throw new ServerException("Cannot find transaction manager.", e);
    }
}
Also used : ServerException(com.ctrip.xpipe.redis.console.exception.ServerException) TransactionManager(org.unidal.dal.jdbc.transaction.TransactionManager) ComponentLookupException(org.codehaus.plexus.component.repository.exception.ComponentLookupException) PostConstruct(javax.annotation.PostConstruct)

Aggregations

ServerException (com.ctrip.xpipe.redis.console.exception.ServerException)1 PostConstruct (javax.annotation.PostConstruct)1 ComponentLookupException (org.codehaus.plexus.component.repository.exception.ComponentLookupException)1 TransactionManager (org.unidal.dal.jdbc.transaction.TransactionManager)1