Luca Molteni
Luca Molteni

Reputation: 5370

Reloading a configuration file under jBoss

Inspired by how Log4j reload its configuration files everytime I change it, I wrote a similar mbean task that read my xml file put in server/(myconfig)/conf

Now I need to access it from my web application, which is in the deploy folder packaged as a .war file (it's a SEAM application).

Should I create a method in the mbean that returns the configuration, or are there any method to share information between mbeans and web application?

Thank you.

Upvotes: 0

Views: 882

Answers (1)

Luca Molteni
Luca Molteni

Reputation: 5370

I put my configuration object the in the JNDI tree. It works very well.

Upvotes: 1

Related Questions