Results 1 to 7 of 7
Thread: Reload .properties class
- 07-13-2011, 10:13 AM #1
Member
- Join Date
- Jul 2011
- Posts
- 14
- Rep Power
- 0
- 07-13-2011, 10:40 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 14
What type of server are you running this on?
What process changes this value?
Consider using a proper caching implementation like ehcache.
Other approaches will probably require you to use APIs that are discouraged in web/application servers (assuming that's the server you are talking about).
- 07-13-2011, 10:56 AM #3
Member
- Join Date
- Jul 2011
- Posts
- 14
- Rep Power
- 0
Im getting value form my TradeEngine.properties.
For an example :
numOfWorkingDays = 4 , but the value change every week. I need to restart the server to get the latest value.
How i can get the updated value without restart the server. ?
I have no idea how to do it.
im using String dayOfWork= System.getProperty( "numOfWorkingDays" );.
- 07-13-2011, 11:49 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 14
- 07-13-2011, 12:09 PM #5
Cross posted
OTN Discussion Forums : Reload .properties ...
db
- 07-13-2011, 04:06 PM #6
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,638
- Rep Power
- 13
And cross posted: Reload .properties
- 07-14-2011, 08:31 AM #7
Member
- Join Date
- Jul 2011
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
reload the value of the variable
By kiranjava in forum Advanced JavaReplies: 1Last Post: 05-05-2010, 08:20 AM -
Properties reload
By koala993 in forum Advanced JavaReplies: 0Last Post: 04-29-2010, 05:39 PM -
How to reload JInternalFrame
By chyrl in forum AWT / SwingReplies: 42Last Post: 04-16-2010, 01:29 PM -
How to put stdout in a class instead of a properties file??
By pudsinuk in forum New To JavaReplies: 0Last Post: 01-22-2010, 12:01 PM -
how to reload a jsp page
By Heather in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-14-2007, 11:49 PM
Bookmarks