Class BAParticipantHelper

java.lang.Object
org.jboss.jbossts.xts.recovery.participant.ba.BAParticipantHelper

public class BAParticipantHelper extends Object
helper to support retrieval of durable BA participant recovery state from participant
  • Constructor Details

    • BAParticipantHelper

      public BAParticipantHelper()
  • Method Details

    • getRecoveryState

      public static byte[] getRecoveryState(boolean useSerialization, BusinessAgreementWithParticipantCompletionParticipant participant) throws Exception
      obtain a byte array containing the recovery state associated with the supplied participant.
      Parameters:
      useSerialization - true if the object should be converted to a byte array using serialization otherwise it will be converted by casting to the PersistableBAParticipant interface and employing the getRecoveryState method.
      participant - the participant whose recovery state is to be obtained
      Returns:
      the state to be saved ro null if no state needs to be saved
      Throws:
      Exception - an exception occurred generating the required recoverable state
    • isSerializable

      public static boolean isSerializable(BusinessAgreementWithParticipantCompletionParticipant participant)
      return true if the object can be saved and restored using serialization otherwise return false
      Parameters:
      participant -
      Returns:
      whether the BusinessAgreementWithParticipantCompletionParticipant was serializable