10 Replies Latest reply on Aug 26, 2002 1:35 PM by Jason Burton

    EJB's never being garbage collected

    Jason Burton Newbie


      I am having a problem getting any of my EJB's to be garbage collected. I made a test case that consists of a single bean being deployed. The bean has no remote methods and a single ejbCreate() method. I made a client that creates the bean and exits, and that's all.

      Given that case, the bean is never garbage collected. ejbRemove() is never called by JBoss.

      Under OptimizeIt, the only reference to the bean is in the CachePolicy class (I have tried both NoPassivationCachePolicy and the default LRUCachePolicy, both with the same results, though LRU eventually passivates the bean and removes the reference).

      Anybody have a clue what I am doing wrong?

      Thanks,
      Jason Burton