Search in sources :

Example 1 with RecoverConnectableAtomicAction

use of com.arjuna.ats.internal.jta.recovery.arjunacore.RecoverConnectableAtomicAction in project narayana by jbosstm.

the class RecoverConnectableAtomicActionBean method createWrapper.

@Override
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate) {
    try {
        InputObjectState state = StoreManager.getRecoveryStore().read_committed(w.getUid(), RecoverConnectableAtomicAction.CONNECTABLE_ATOMIC_ACTION_TYPE);
        connectableAtomicAction = new RecoverConnectableAtomicAction(RecoverConnectableAtomicAction.CONNECTABLE_ATOMIC_ACTION_TYPE, w.getUid(), state);
    } catch (ObjectStoreException e) {
        ;
    } catch (IOException e) {
        ;
    }
    GenericAtomicActionWrapper action = new GenericAtomicActionWrapper(connectableAtomicAction, w);
    if (activate)
        action.activate();
    return action;
}
Also used : InputObjectState(com.arjuna.ats.arjuna.state.InputObjectState) ObjectStoreException(com.arjuna.ats.arjuna.exceptions.ObjectStoreException) RecoverConnectableAtomicAction(com.arjuna.ats.internal.jta.recovery.arjunacore.RecoverConnectableAtomicAction) IOException(java.io.IOException)

Aggregations

ObjectStoreException (com.arjuna.ats.arjuna.exceptions.ObjectStoreException)1 InputObjectState (com.arjuna.ats.arjuna.state.InputObjectState)1 RecoverConnectableAtomicAction (com.arjuna.ats.internal.jta.recovery.arjunacore.RecoverConnectableAtomicAction)1 IOException (java.io.IOException)1