Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1368

StatefulBeanContext doesn't override equals()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AS 5.0.0.CR1
    • AS 4.2.0 GA, AS 4.2.1.GA, AS 4.2.2.GA, AS 5.0.0.Beta4
    • core
    • None

      Really a side issue to EJBTHREE-1367.

      StatefulBeanContext does not override Object.equals(), so it relies on object identity. This breaks if the context has been serialized and deserialized (i.e. passivated/activated or replaced via replication from another node).

      Side issue to EJBTHREE-1367 since the place where SBC.equals() matters is in the extra cache maintained by InfinitePool.activeList. This equals issue makes matters worse, since because of it if an SFSB has been serialized/deserialized, when it is removed the ref won't get cleared from the InfinitePool.activeList. The list will keep growing until the bean is undeployed.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: