Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1293

Conditional Client Failover based on container or bean thrown Exception types

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: server
    • Labels:
      None

      Description

      Calling org.apache.openejb.client.Client.addRetryCondition(MyException.class) allows the addition of either standard or custom exception classes to be seen as failures which should result in failover and the request retried on a different server. A concrete example might be javax.ejb.ConcurrentAccessTimeoutException, which indicates the bean itself is busy and cannot be accessed. Or in the case of @Stateless beans indicates the pool itself is drained and all instances are in use.

        Attachments

          Activity

            People

            • Assignee:
              dblevins David Blevins
              Reporter:
              dblevins David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: