2 Replies Latest reply on Oct 18, 2005 12:23 PM by renkrad

    ejbActivate not executed

    renkrad

      Hy,

      I'm using ejb 2.0 in jboss-3.2.7.
      After creating a record on the db using the ejbCreate method of my been, a finder is executed that should return only the newly created record.

      The finder gets the record correctly, but the activate is never called before the load. It's a BMP entity.

      Is there any known bug already reported related?

      Thanx,
      Daniel Campelo

        • 1. Re: ejbActivate not executed
          darranl

          You should have a look at the EJB2.0 specification.

          Section 12.1.3 shows the lifecycle for bean managed persistence entity beans.

          The container is only required to call ejbActivate() if the bean is being taken from the pooled state to the ready state. If the bean is already in the ready state and is assigned an entity object identity this transition is not required.

          The container may still call ejbLoad and ejbStore for the data to be synchronized with the database.

          • 2. Re: ejbActivate not executed
            renkrad

            Ups your correct.

            Forgot to implement the ejbPostCreate.

            Thanx