Re: fetch loop
Re: fetch loop
- Subject: Re: fetch loop
- From: Philippe Lafoucrière <email@hidden>
- Date: Tue, 25 Apr 2006 08:21:25 +0200
On 24 avr. 06, at 19:27, Kieran Kelleher wrote: Er, here it is again... hoping I am less than 30K moderator limit this time! ----------------------- Create a class, say "CheckRemoteTask" that extends java.util.TimerTask and put your webservice checking code in the run() method. If you are interaction with EOF, then create an editing context in your CheckRemoteTask and use a try/finally to make sure you unlock when finished with it like this....
Lovely ! Thank you Kieran !
If you have multiple instances of your app running, then you need to create a separate "singleton" app that fires a direct action to your multiple instance app every 30 secs and the DA can run the code. This ensures the code runs only once every 30 secs in whichever of the multiple instances the adaptor passes the DA to ..... but don't worry about that if you have only one instance of your app running.
I have only one instance right now. It might be not true in a few months, so your comment shall be usefull then ;)
Thank you again for your support Philippe |
_______________________________________________
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
References: | |
| >fetch loop (From: Philippe Lafoucrière <email@hidden>) |
| >Re: fetch loop (From: Kieran Kelleher <email@hidden>) |