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(java.lang.String className)Can thisSerializableXAResourceDeserializerhandle the specified classname.javax.transaction.xa.XAResourcedeserialze(java.io.ObjectInputStream ois)Deserialize the XAResource.
-
-
-
Method Detail
-
canDeserialze
boolean canDeserialze(java.lang.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
javax.transaction.xa.XAResource deserialze(java.io.ObjectInputStream ois) throws java.io.IOException, java.lang.ClassNotFoundExceptionDeserialize the XAResource.- Parameters:
ois- The input stream to read from.- Returns:
- An
XAResource - Throws:
java.io.IOException- If the ObjectInputStream.readObject() fails.java.lang.ClassNotFoundException- If the ObjectInputStream.readObject() fails.
-
-