0 Replies Latest reply on Jan 15, 2010 10:03 AM by rudolf.noe

    Invalidate EntityBeans

    rudolf.noe

      Hello,

      I have the following problem:

      I have an old EJB Application based on EJB 2.0 and with BMP.

      For performance reasons the entity beans caches some data in member fields to avoid long-lasting database queries.

       

      As the data on the database changes from time to time a new function (via a stateless session bean) should be added which should

      invalidate all entity beans on demand. I.e. on the next request all data should be loaded again from the database.

       

      Now my question:

      Is there a possibility to inform the container to invalidate all entity beans. I tried it via setting up an invalidation group and using the invalidationmanager

      MBEan but it didn't work.

       

      Any ideas?

       

      PS: We are currently using JBOSS 4.0.5 GA.