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 PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Hello
Can you write an exemple??
Thank!!
Eric
--- Pierre Bernard <[EMAIL PROTECTED]> 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 PROTECTED]
- Quality Mac OS X software
- Premium WebObjects consulting
On Sep 15, 2006, at 4:22 PM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> 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 (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects-
lists%40houdah.com
This email sent to [EMAIL PROTECTED]
- - -
Houdah Software s. à r. l. - [EMAIL PROTECTED]
- 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 PROTECTED]
- Quality Mac OS X software
- Premium WebObjects consulting
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to archive@mail-archive.com