This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Reinitializing Context or Web Application in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Reinitializing Context or Web Application in JBoss" Watch "Reinitializing Context or Web Application in JBoss" New topic
Author

Reinitializing Context or Web Application in JBoss

J.C. Bustamante
Greenhorn

Joined: Jul 20, 2009
Posts: 22
Hi All,

I have a JBoss Service that has a list of environment specific configurations which it places within the JNDI. My web application picks these configurations up from the JNDI when it initializes. However, if I want to change any of those configurations in the JBoss Service, then I would have to restart the JBoss Server in order for the web application to pick them up. What I would like to know is if there is a way to do any of the following:

1. Reinitialize the web application or web application context at runtime through JBoss.
2. Have the jboss service fire off a change event that could be picked up by a listener on the Web Application side which can then make the necessary updates.

If there are any other solutions, please let me know.

Thanks,

Juan
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9924
    
158

Which version of JBoss AS is this? And how do you configure that JBoss service? Through MBeans?


[My Blog] [JavaRanch Journal]
J.C. Bustamante
Greenhorn

Joined: Jul 20, 2009
Posts: 22
My apologies,

The version of the JBoss AS is 5.1.0.GA, and the JBoss service is configured through MBeans.

Thanks,

Juan
 
wood burning stoves
 
subject: Reinitializing Context or Web Application in JBoss
 
Similar Threads
Invoking EJBs across the Servers
Calling EJB from servlet from different IP
Registering a DataSource in JNDI
MDB @PostConstruct error
How do you separate Server configuration (urls, domains) properties from a Web Application?