• 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
Re: Are Properties re-read after a scheduled re-start?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are Properties re-read after a scheduled re-start?


  • Subject: Re: Are Properties re-read after a scheduled re-start?
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 21 Jul 2009 06:59:17 -0700


On Jul 21, 2009, at 2:50 AM, Paul Hoadley wrote:

Hello,

I have an app deployed using JavaMonitor. I have a property 'acceptLogins=false' in Properties, which has the effect of disabling non-superuser logins on startup. When appropriate, a superuser changes the state of a variable in Application to allow all logins.

Is a scheduled re-start via JavaMonitor a hard re-start? In particular, is Properties re-read? (I should be able to answer this myself in about 8 hours...) Ideally, I want the semantics here to be "disallow logins on first launch, not again after every scheduled re-start". Is there any way to persist this kind of state across a scheduled re-start? (If all else fails, I can use the database, of course.)


Yes, it is a hard restart. The JVM terminates and a new process starts. You will need to use the database.

Chuck

--
Chuck Hill             Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

_______________________________________________
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: Are Properties re-read after a scheduled re-start?
      • From: Paul Hoadley <email@hidden>
References: 
 >Are Properties re-read after a scheduled re-start? (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Question about fetching
  • Next by Date: Re: Question about fetching
  • Previous by thread: Are Properties re-read after a scheduled re-start?
  • Next by thread: Re: Are Properties re-read after a scheduled re-start?
  • Index(es):
    • Date
    • Thread