1 Reply Latest reply on Dec 8, 2004 9:05 AM by Dimitris Andreadis

    startup classes / MBean cache implementation

    peter neville Newbie

      I thought that JBoss had a similar facility to that offered by Sun for automatic startup of classes. For example Sun app server can use a Lifecycle module.

      Is the best way in JBoss to use MBean?

      Are there any other ways (apart from web.xml - servlet/load-on-startup)

      I would like to automatically startup a class that holds a cache of data that changes infrequently. I would like the ability to refresh this cache (perhaps from jmx) and lock access to the cache during update.
      Can MBeans provide locking or would I simply check a state variable that forces a wait whilst refresh takes place?