• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Application properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application properties


  • Subject: Application properties
  • From: WebObjects TORAcom <email@hidden>
  • Date: Thu, 19 Apr 2012 22:55:01 -0500

Hi List,

We have been using a table to store the application configuration parameters.
In every application that table just have a record and we have a Configuration section in the app to modify those values. In the Application class we have methods to store an updated object with the configuration information.

It works fine until we deploy the application and starts more than one instance in the JavaMonitor because if any value of the configuration changes the object in the Application object gets updated but the other instances don't receive any message to reload configuration info.
We don't want to consult the data base any time we want a configuration parameter because we use them all over the application, we store number formats, reporter URL, date formats, etc.

Is there any way to send a kind of message between different instances of the same application?


I am thinking on changing our approach to use XML properties file, but I have the same problem, How to know when the properties file changes to load them in every instance of my application?

Any help will be appreciated.

Best regards.


Miguel Torres
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Application properties
      • From: Johann Werner <email@hidden>
  • Prev by Date: Re: WOUnit
  • Next by Date: Re: Application properties
  • Previous by thread: ERRest keys renaming
  • Next by thread: Re: Application properties
  • Index(es):
    • Date
    • Thread