Fabric3

JPA extension does not release cached information on undeployment

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5
  • Component/s: JPA/Hibernate
  • Labels:
    None
  • Number of attachments :
    0

Description

The JPA extension does not release cached EntityManagerFactory instance of PersistenceInfoImpl instances. This leads to classloader errors on redployment as classes from the classloader of the previous deployment are used with the current deployment classloader. This also results in a memory leak as references to undeployed classloaders are not released.

This fix I will check in creates an SPI listener for use when a classloader is unloaded. This can be used to clear the above cached information.

Activity

Hide
Jim Marino added a comment -

fixed in r8837.

Show
Jim Marino added a comment - fixed in r8837.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: