File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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: 8839
    
    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
Reloading a Resource Bundle
message-resources reload
Struts-Tiles Reloading Problem
Placing ReloadedMessageResources.java in a jar file
JRUN Recompile/Reload