4 Replies Latest reply on Mar 30, 2006 11:21 AM by snacker

    Container Cached Entity Beans


      I'm working in an environment that has multiple applications which use a mix of EJB and straight database calls.

      The problem is if a database record is updated by one of the applications, the EJB container doesn't know about it. It takes a while before the container removes the entity bean from it's cache and reloads it from the database.

      In the meantime the container continues to serve the old data.

      Is there a way to tell the container to flush an object from it's cache?
      Is there a way to mark an entity bean as "dirty"?

      (I'm not talking about "JbossCache" here.)