com.arjuna.ats.jta.recovery
Interface SerializableXAResourceDeserializer


public interface SerializableXAResourceDeserializer

This is an additional recovery helper that allows clients of the transaction manager to provide a deserializer for their Serializable XAResources. We need this as otherwise the transaction manager may not be able to see the transports classes, for instance in an application server environment.


Method Summary
 boolean canDeserialze(String className)
          Can this SerializableXAResourceDeserializer handle the specified classname.
 XAResource deserialze(ObjectInputStream ois)
          Deserialize the XAResource.
 

Method Detail

canDeserialze

boolean canDeserialze(String className)
Can this SerializableXAResourceDeserializer handle the specified classname.

Parameters:
className - The name of the class to deserialize.
Returns:
A flag to indicate where the deserializer is aware of the Serializable XAResource.

deserialze

XAResource deserialze(ObjectInputStream ois)
                      throws IOException,
                             ClassNotFoundException
Deserialize the XAResource.

Parameters:
ois - The input stream to read from.
Returns:
An XAResource
Throws:
IOException - If the ObjectInputStream.readObject() fails.
ClassNotFoundException - If the ObjectInputStream.readObject() fails.


Copyright © 2012. All Rights Reserved.