1 Reply Latest reply on Jun 15, 2005 9:10 AM by Stefan Meier

    ejbStore() is not called when a new instance is created, onl

    Stefan Meier Newbie

      Hi all,

      I have the following problem with JBoss 3.2.7:

      When I create a new instance of an entity bean, it is written to the database without the ejbStore() method being called. I verified this by inserting debug messages in my ejbCreate() and ejbStore() method. As I'm setting the value of one field (called timestam_last_change) in my ejbStore(), my code is not working correctly any more. It worked with JBoss 3.2.1 though.
      Of course I could work around this problem by setting my timestam_last_change in the ejbCreate() method too, but I'm just wondering if this is a bug in jboss or if I misunderstood the meaning of ejbStore. I always thought ejbStore is alway called before the database is updated.

      Any help is greatly appreciated.