Search in sources :

Example 1 with InboundBridgeOrphanFilter

use of org.jboss.narayana.rest.bridge.inbound.InboundBridgeOrphanFilter in project wildfly by wildfly.

the class InboundBridgeService method addDeserializerAndOrphanFilter.

private void addDeserializerAndOrphanFilter() {
    final RecoveryManager recoveryManager = RecoveryManager.manager();
    for (RecoveryModule recoveryModule : recoveryManager.getModules()) {
        if (recoveryModule instanceof XARecoveryModule) {
            orphanFilter = new InboundBridgeOrphanFilter();
            ((XARecoveryModule) recoveryModule).addXAResourceOrphanFilter(orphanFilter);
            ((XARecoveryModule) recoveryModule).addSerializableXAResourceDeserializer(new InboundBridge());
        }
    }
}
Also used : RecoveryManager(com.arjuna.ats.arjuna.recovery.RecoveryManager) InboundBridge(org.jboss.narayana.rest.bridge.inbound.InboundBridge) RecoveryModule(com.arjuna.ats.arjuna.recovery.RecoveryModule) XARecoveryModule(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule) InboundBridgeRecoveryModule(org.jboss.narayana.rest.bridge.inbound.InboundBridgeRecoveryModule) InboundBridgeOrphanFilter(org.jboss.narayana.rest.bridge.inbound.InboundBridgeOrphanFilter) XARecoveryModule(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule)

Aggregations

RecoveryManager (com.arjuna.ats.arjuna.recovery.RecoveryManager)1 RecoveryModule (com.arjuna.ats.arjuna.recovery.RecoveryModule)1 XARecoveryModule (com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule)1 InboundBridge (org.jboss.narayana.rest.bridge.inbound.InboundBridge)1 InboundBridgeOrphanFilter (org.jboss.narayana.rest.bridge.inbound.InboundBridgeOrphanFilter)1 InboundBridgeRecoveryModule (org.jboss.narayana.rest.bridge.inbound.InboundBridgeRecoveryModule)1