Thanks Johann you are right we have an arbitrary number of instances. I think I 
will try ERJGroupsSynchronizer.



On 20/04/2012, at 01:09, Johann Werner wrote:

> Hi Miguel,
> 
> either you have 
> 
> • a fixed set of instances (not very probable) then whenever a change to that 
> table is saved you could call a direct action on the other (known) instances 
> to cause a refetch
> • an arbitrary number of instances (more probable) then you should have a 
> look at the ERJGroupsSynchronizer in Wonder. There you can send notifications 
> to any listening instances and trigger the refetch by that way.
> 
> jw
> 
> 
> Am 20.04.2012 um 05:55 schrieb WebObjects TORAcom:
> 
>> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to