Results 1 to 7 of 7
  1. #1
    chinna is offline Member
    Join Date
    Jul 2011
    Posts
    14
    Rep Power
    0

    Default Reload .properties class

    Hi,
    Here is the scenario, my properties class holds the value for my variable which the value change everday. How i want to get the value without restarting the server.
    Please help. Thanks.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    10

    Default

    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).

  3. #3
    chinna is offline Member
    Join Date
    Jul 2011
    Posts
    14
    Rep Power
    0

    Default

    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" );.

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    10

    Default

    Quote Originally Posted by chinna View Post
    How i can get the updated value without restart the server. ?
    I have no idea how to do it.
    Read the reply above again.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,000
    Rep Power
    22

  6. #6
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    9

    Default

    And cross posted: Reload .properties

  7. #7
    chinna is offline Member
    Join Date
    Jul 2011
    Posts
    14
    Rep Power
    0

    Default

    appreciate if the admin can close the thread. Sorry for the inconveniences. Thanks.

Similar Threads

  1. reload the value of the variable
    By kiranjava in forum Advanced Java
    Replies: 1
    Last Post: 05-05-2010, 08:20 AM
  2. Properties reload
    By koala993 in forum Advanced Java
    Replies: 0
    Last Post: 04-29-2010, 05:39 PM
  3. How to reload JInternalFrame
    By chyrl in forum AWT / Swing
    Replies: 42
    Last Post: 04-16-2010, 01:29 PM
  4. Replies: 0
    Last Post: 01-22-2010, 01:01 PM
  5. how to reload a jsp page
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-14-2007, 11:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •