0 Replies Latest reply on Sep 7, 2004 7:54 AM by neva

    Cache Invalidation

    neva

      Hello all,

      I have been searching around on how to use cache invalidation but haven't been able to get anywhere.. I hope I can find some help here..

      If I need 2 entity beans to send cache invalidation messages to each other, I do the following:
      Add this to the 2 beans:

      * @jboss.container-configuration
      * name = "Standard CMP 2.x EntityBean with cache invalidation"
      *
      * @jboss.cache-invalidation
      * value="true"
      * @jboss.cache-invalidation-config
      * invalidation-group-name="MyGroup"

      does this mean that these 2 beans will belong to the MyGroup invalidation group and thus when one bean changes, it will look for all beans that fall within that group and sends them the invalidation message causing it to flush its data?