Search in sources :

Example 1 with InboundBridgeRecoveryManager

use of org.jboss.jbossts.txbridge.inbound.InboundBridgeRecoveryManager in project wildfly by wildfly.

the class TxBridgeInboundRecoveryService method start.

@Override
public synchronized void start(final StartContext context) throws StartException {
    // XTS expects the TCCL to be set to something that will locate the XTS service implementation classes.
    final ClassLoader loader = TxBridgeInboundRecoveryService.class.getClassLoader();
    WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(loader);
    try {
        InboundBridgeRecoveryManager service = new InboundBridgeRecoveryManager();
        try {
            service.start();
        } catch (Exception e) {
            throw XtsAsLogger.ROOT_LOGGER.txBridgeInboundRecoveryServiceFailedToStart();
        }
        inboundBridgeRecoveryManager = service;
    } finally {
        WildFlySecurityManager.setCurrentContextClassLoaderPrivileged((ClassLoader) null);
    }
}
Also used : InboundBridgeRecoveryManager(org.jboss.jbossts.txbridge.inbound.InboundBridgeRecoveryManager) StartException(org.jboss.msc.service.StartException)

Aggregations

InboundBridgeRecoveryManager (org.jboss.jbossts.txbridge.inbound.InboundBridgeRecoveryManager)1 StartException (org.jboss.msc.service.StartException)1