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 Struts and the fly likes How to reload the Message resources in struts. 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 » Frameworks » Struts
Bookmark "How to reload the Message resources in struts." Watch "How to reload the Message resources in struts." New topic
Author

How to reload the Message resources in struts.

Anoop Menon
Greenhorn

Joined: Jan 16, 2009
Posts: 2

Hi all,

I am changing the contents of the message resource properties file using AJAX. But I have to restart my JBoss server to reflect the changes. Now, how can I reload the message resources after updating the message property file, without restarting the server. Waiting for replies, thanks in advance,

Anoop M
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8834
    
    7

You don't have to restart the server. You just have to redeploy the application after a change to message.resources.
If you search the forum, you may find other options which may meet your requirements.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
One of our members has posted a way to create a properties file that will reload dynamically, and his solution is found in our FAQ. Here is the link:

http://faq.javaranch.com/java/ReloadMessageResources


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to reload the Message resources in struts.
 
Similar Threads
Struts-Tiles Reloading Problem
Placing ReloadedMessageResources.java in a jar file
JRUN Recompile/Reload
message-resources reload
Reloading a Resource Bundle