Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.jbossts.xts.recovery.participant.at;
 
 
A recovery module which recovers durable participants registered by subordinate coordinators
    public Durable2PCParticipant deserialize(String idObjectInputStream streamthrows Exception {
            // throw an exception because we don't expect these participants to use serialization
            throw new Exception("XTSATSubordinateRecoveryModule : invalid request to deserialize() subordinate WS-AT coordinator durable participant " + id);
        }
        return null;
    }
    public Durable2PCParticipant recreate(String idbyte[] recoveryStatethrows Exception {
            InputObjectState ios = new InputObjectState();
            ios.setBuffer(recoveryState);
            String className = ios.unpackString();
            Class participantClass =  this.getClass().getClassLoader().loadClass(className);
            Durable2PCParticipant participant = (Durable2PCParticipant)participantClass.newInstance();
            ((PersistableParticipant)participant).restoreState(ios);
            return participant;
        }
        return null;
    }

    
we don't need to use this because the AT recovery manager tracks whether a subordinate AT scan has happened
    public void endScan()
    {
        // do nothing
    }
New to GrepCode? Check out our FAQ X