Right, lessee if I can explain my problem :) - I'm building a server application including Message Driven Beans. - These Beans have settings such as url's to retrieve things from. - These settings need to be changable in runtime via a servlet/www interface. - I'd like to use a generic preferences/settings/configuration framework that handles loading/saving/persistance of configuration for me, and provides a global configuration object from which all my war's/ejb's can retrieve their configuration.
Now I've chosen the Java Preferences API as this framework, cause it provides most of what I like, but this poses a problem as to changing settings in runtime. The problem is that java preferences give us the ability to use listeners to listen to configuration changes in runtime, which is what I want, but these listeners all run in a single thread. If I'm not mistaken you don't want to do things inside an EJB from a not ejb/container related thread, cause you might interfer with the ejb server, and als I've found out (the hard way;) that trying this also gives problems with classloaders, the classloader of the thread being different then those of the ejb's. I'd consider calling my ejb's via home/remote interfaces from the preferences thread to update their configuration, but this doesn't work for MDB's, they are only 'callable' via jms messages (right? ) Does anyone have a good idea how to set this up, possibly using a different configuration framework, or can I just use the listeners , or can I call MDB's somehow from the thread ? Has someone done anything like this before ? Any help 'd be greatly appreciated :) If you know a forum/mailinglist on wich this post would be more on topic I'd also like to hear so I can post there :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842193#3842193 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842193 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user