5 Replies Latest reply on Feb 27, 2004 11:02 AM by mandrews-flarion

    callbacks from CMP or caching layer

    mandrews-flarion

      hi folks,

      i have an entity bean which has a String field containing xml. since i reference this bean often, i want to cache the parsed DOM locally in my application. of course, i can't store the DOM object in the bean since there are troublesome issues associated with persisting java objects directly

      what i need then is a way for my application's own private cache of DOM objects to get notifications from jboss' CMP or caching layer, telling it when these beans have changed. then, after such notification, my application can flush its own cache of the DOM object corresponding to that particular bean.

      questions:

      (1) is there any way to get reference to such a jboss notification object from JMX or JNDI?

      (2) if my whole approach seems problematic, please let me know.

      thanks,
      mike