-
1. Re: Scheduling Tasks
genman Aug 31, 2004 7:36 PM (in response to aryjr)
Unfortuantely JBoss/JMX does not have a good way to persist attribute changes to disk or database. I think with XMBeans you can create interceptors, but I haven't gotten this to work very well. I think there are two good solutions:
1) Modify the -service.xml file directly.
2) Create your own MBean which, through setAttribute/getAttribute saves/loads values from a database. -
2. Re: Scheduling Tasks
raja05 Sep 2, 2004 1:05 AM (in response to aryjr)XMBean should be a good option to do this combined with a custom persistence manager. you can define ur custom persistence manager to extend from org.jboss.mx.persistence.PersistenceManager and override the load and store methods to retrieve/store values from DB or flat file.
My MBean is XDoclet-ed to use this persistencemanager like
* @jmx.mbean name="net.collab:type=Configuration"
* description="Configuration Bean - XMBean"
* persistPolicy="OnUpdate"
* persistLocation="/tmp"
* persistName="config.mbean"
* persistence-manager="net.collab.xmbean.persistence.PropertyStyledPersistenceManager"
* -
3. Re: Scheduling Tasks
dimitris Sep 13, 2004 2:36 PM (in response to aryjr)There is a new persistence framework + XML based persistence backend for XMBeans,
see:
http://www.jboss.org/wiki/Wiki.jsp?page=XMBeanAttributePersistenceService
Regards
/Dimitris