• 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: RE : Re: restart except saturday and sunday
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE : Re: restart except saturday and sunday


  • Subject: Re: RE : Re: restart except saturday and sunday
  • From: Pierre Bernard <email@hidden>
  • Date: Sun, 17 Sep 2006 11:00:31 +0200

public void refuseNewSession(boolean flag) {
	if (flag) {
		GregorianCalendar calendar = new GregorianCalendar();
		int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);

if ((dayOfWeek == Calendar.SATURDAY) || (dayOfWeek == Calendar.SUNDAY)) {
// ignore
return;
}
}

super.refuseNewSession(flag);
}



On Sep 17, 2006, at 9:26 AM, <email@hidden> <email@hidden> wrote:


Hello

Can you write an exemple??

Thank!!

Eric
--- Pierre Bernard <email@hidden> a écrit :

Hi!

There are several ways of doing this.

One would by to override refuseNewSessions(flag) to just do nothing
when passed a true value on a Saturday or Sunday.

Best,
Pierre

- - -
Houdah Software s. à r. l. - email@hidden
- Quality Mac OS X software
- Premium WebObjects consulting



On Sep 15, 2006, at 4:22 PM, <email@hidden>
<email@hidden> wrote:

Hello

 I want to restart an application every day except saturday and
sunday (can't be done, real
constraint).

Any idea ?

 - WebObject 5.2.4
 - Windows 2003
 - IIS

Eric





____________________________________________________________________ __
_____
Découvrez un nouveau moyen de poser toutes vos questions quelque
soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos
opinions et vos expériences.
http://fr.answers.yahoo.com


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

This email sent to email@hidden

- - - Houdah Software s. à r. l. - email@hidden - Quality Mac OS X software - Premium WebObjects consulting











______________________________________________________________________ _____
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com



- - - Houdah Software s. à r. l. - email@hidden - Quality Mac OS X software - Premium WebObjects consulting




_______________________________________________ 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: RE : Re: restart except saturday and sunday
      • From: Gavin Eadie <email@hidden>
References: 
 >RE : Re: restart except saturday and sunday (From: <email@hidden>)

  • Prev by Date: RE : Re: restart except saturday and sunday
  • Next by Date: ANN: WOUnitTest 2
  • Previous by thread: RE : Re: restart except saturday and sunday
  • Next by thread: Re: RE : Re: restart except saturday and sunday
  • Index(es):
    • Date
    • Thread