Thank you very much On 13/apr/2010, at 19.43, Kieran Kelleher wrote:
> If you refuse sessions, the app will not process requests, and will send new > requests to other instances that are not refusing sessions. If all instances > are refusing sessions, you will get the "No instance available" page. You can > provide a custom page instead of "No instance available" by > editing/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf and change > property like this: > > ## Custom Adaptor options > # Page for when the adaptor has a 'No instance found' situation: > WebObjectsOptions redir=/systemupdating.html > > > and then u get a page like this, for example > http://valpak.radiuslist.com/systemupdating.html > > BTW, not sure if this setting is the exact same functionality as the > RedirectionURL in WOMonitor, which I have never used myself personally. > > HTH, Kieran > > PS. If you use WOnder and you want to kick people off your app in a > well-mannered way, you can create a feature in your app where administrator > can set a "showMessageWhenRefusingSessions" boolean, a value for ERTimeToKill > and a custom message such that the custom message will display in the > header/PageWrapper for every page while the app is refusing sessions and the > showMessageWhenRefusingSessions is true. Additionally you can put an Ajax > periodic updater with the message to display the remaining time left before > ERTimeToKill kicks everyone off and kills the instance. > > > > > On Apr 13, 2010, at 12:29 PM, Amedeo Mantica wrote: > >> Hello, >> >> I have a method that calls application().refuseNewSessions(true); >> >> At this point I wolud like to show for the users who are going to create new >> sessions a custom error page, so I overrride the WOApplication method: >> >> handleSessionCreationErrorInContext >> >> now... >> >> Instead of having my custom page i got a redirect error on the browser and >> this in my app log >> >> DEBUG NSLog - !!! Request will be REDIRECTED to non-refusing instance >> >> I'm in development mode, single instance. >> >> Any suggestions ? >> Thanks >> >> Amedeo >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com >> >> This email sent to [email protected] >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
