0 Replies Latest reply on Sep 16, 2007 1:58 PM by Igor Vukmirovic

    EJB beans constantly loaded

    Igor Vukmirovic Newbie

      I have recently ported my EJB 2.1 project to EJB 3.0.

      However, it seems that the new EJB 3.0 beans are constantly created and loaded from the database. E.g. when I look an entity bean I have used before during the session up, a new bean instance is created and loaded from the database. One would expect that the Entity Manager would find the old instance in the memory and return it. This is what ORM is all about, right?

      In EJB 2.1 this behaviour can be changed by setting the commit-option to A. But, now this doesn't seem to help :(

      Any help would be more than appreciated!

      Best regards,
      Igor Vukmirovic