Package com.arjuna.ats.jta.recovery
Interface SerializableXAResourceDeserializer
-
public interface SerializableXAResourceDeserializerThis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanDeserialze(String className)Can thisSerializableXAResourceDeserializerhandle the specified classname.XAResourcedeserialze(ObjectInputStream ois)Deserialize the XAResource.
-
-
-
Method Detail
-
canDeserialze
boolean canDeserialze(String className)
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
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.
-
-