• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to reload the Message resources in struts.

 
Anoop Menon
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic