Package 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
Modifier and TypeMethodDescriptionbooleancanDeserialze(String className) Can thisSerializableXAResourceDeserializerhandle the specified classname.Deserialize the XAResource.
-
Method Details
-
canDeserialze
Can thisSerializableXAResourceDeserializerhandle 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
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.
-