Is this a Project Wonder app?
If not, you might find a solution in Wonder.
Relevant methods include:
er.extensions.appserver.ERXApplication.refuseNewSessions(boolean)
er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(WORequest)
On Nov 10, 2011, at 2:37 AM, Martin Samm wrote:
> i'm having an issue with an app. When an instance is scheduled for a restart, so refuse sessions is on, we're still getting sessions created on that instance.
>
> I can see these log entries:
>
> <WOApplication> !!! _initializeSessionInContext: called with refuseNewSessions set !!!
>
> Looking at a decompiled WOApplication class i can see this code in the '_initializeSessionInContext' method:
>
> if(isRefusingNewSessions())
> {
> NSLog.err.appendln("<WOApplication> !!! _initializeSessionInContext: called with refuseNewSessions set !!!");
> aContext._set_refuseThisRequest(true);
> }
>
> So, whilst the code knows we're refusing session it's stil [seemingly] creating one.
>
> What's the solution? Can/Should we catch the above and do something? Can we force the request to another instance thats not refusing sessions?
>
> Many Thanks
>
> --
> Martin Samm
> Aetopia Ltd
> +44 (0) 28 9099 8767
> ____________________________________________________________________________
> Aetopia Ltd is a limited company registered in Belfast, Northern Ireland,
> with registration number NI053321, having its principal place of business
> (and postal address) at ECIT Institute, Queens Road, BELFAST BT3 9DT
> and registered office at 1, Lanyon Quay, BELFAST BT1 3LG
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________
> Wonder-disc mailing list
> Wonder-disc@...
> https://lists.sourceforge.net/lists/listinfo/wonder-disc
|