2 Replies Latest reply on Apr 19, 2005 11:45 AM by Ed O Neill

    ejbStore doesn't seem to be called in BMP Bean

    Ed O Neill Newbie

      Hello all,

      I'm right new to JBoss so I still have the hope that there is a simple answer for my problem.

      I use an EntityBean 'ObjectNumberBean' for counting up diverse IDs. It is a BMP bean. I use this bean e.g. for a new user-account to provide a User-ID.
      A call looks something like 'objNum.getNextValue()'.
      The interfaces are generated by xdoclet. Before we used JBuilder 7 and the "extract interfaces" option to create interfaces but now changed to eclipse.
      The problem now is that obviously ejbStore() is not called anymore. The new id that is correctly stored as a member variable (int) in the bean is not written back in the database. When using BeanTA, everything worked fine, and since then we didn't change the code nor anything in the JBoss configuration.
      All set and get-methods are marked with '@ejb.persistence' so that they are automatically overwritten in the subclass by adding makeDirty().

      I don't know where my fault might be.

      I'm using JBoss 3.2.3.

      Any hint is appreciated

      Regards
      Jan