Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4638

EntityBean instances are leaked from pool if exception is thrown during instance activation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.0.Alpha2
    • 9.0.0.CR2, 10.0.0.Alpha1
    • EJB
    • None

    Description

      This is addition to WFLY-4569.

      One more case was discovered when bean is leaked from the pool after an exception is thrown in certain methods:

      • If any exception is thrown during call to instance.activate() (which includes calls to ejbActivate and ejbLoad), then cache implementations (both optimistic and pessimistic) never notifies pool that instance should be discarded.

      In addition, a little correction should be made for handling exceptions thrown from ejbCreate (handling was introduced as part of WFLY-4569) – such instances should not be released to the pool, but discarded with pool notification in order to comply with EJB specification.

      Attachments

        Activity

          People

            alexeymakhmutov Alexey Makhmutov
            alexeymakhmutov Alexey Makhmutov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: