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 Detail

      • canDeserialze

        boolean canDeserialze​(java.lang.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

        javax.transaction.xa.XAResource deserialze​(java.io.ObjectInputStream ois)
                                            throws java.io.IOException,
                                                   java.lang.ClassNotFoundException
        Deserialize 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.