0 Replies Latest reply on Aug 30, 2001 11:08 AM by guilluame guilluame

    Optimitic locking within jboss

    guilluame guilluame Newbie

      Hi guys


      I am trying to use optimitic locking within jboss(2.2).

      I use a version field wich get incremented buy ejbStore.

      but I am facing a problem.

      when I create a bean my version field get set to 0 (ejbStore is not call) when I access this bean for the first time to read it(via finder), the version field is set to 1 (ejbStore is called) in the database.

      the funny thing is that when i read the bean the version field of my bean is still 0. => the cache is out of sync.

      Any Ideas....