This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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: 9138
    
    9

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.

[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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to reload the Message resources in struts.
 
It's not a secret anymore!