Version 2

    Overview

    This feature will allow EAP supported transaction services to react to suspend and resume requests. The supported services are JTA, JTS, WS-AT, and WS-BA.

    After suspend, all the services remain functional (as per Stuart’s statement on wildfly-dev [1]). All external requests bound to the existing transactions are allowed in. All external requests requiring new transaction are blocked. All remote transaction management requests, except begin, are allowed in.

    After resume, all requests are allowed in.

    After suspend timeout, all services must shutdown.

     

    Metadata

     

    Requirements

    1. After suspend, all transaction services except recovery manager (JTA, JTS, WS-AT, WS-BA, reaper, TSM) function as normal.
    2. After suspend request, recovery manager completes an active recovery cycle and suspends.
    3. EJB subsystem consults transactions subsystem, if an incoming request should be blocked, and then either blocks it or not.
      1. All requests belonging to an existing JTA transaction are allowed.
      2. All requests not belonging to an existing JTA transaction are blocked.
      3. All requests belonging to an existing JTS transaction are allowed.
      4. All JTS transaction management requests are allowed, except a request to begin a transaction.
      5. All requests not belonging to an existing JTS transaction are blocked.
    4. Web Services subsystem consults XTS subsystem, if an incoming request should be blocked, and then either blocks it or not.
      1. All requests belonging to an existing WS-AT or WS-BA transaction are allowed.
      2. All transaction management requests are allowed, except a request to begin a transaction.
      3. All requests not belonging to an existing WS-AT or WS-BA transaction are blocked.
    5. After resume, all requests are allowed.
    6. After resume, recovery manager resumes.
    7. After suspend timeout, all outstanding transactions are aborted and all services are shutdown.

     

    [1] http://wildfly-development.1055759.n5.nabble.com/Design-Proposal-Server-suspend-resume-AKA-Graceful-Shutdown-tt5714243.html#a5714268