On Thu, 22 Nov 2007, Alexander Landsnes Keül wrote:
> It seems the session isn't created until the user encounters an
> @AuthorizeInstantiation("..."), but there are parts of the page which
> doesn't require authentication and thus no session for me to use. Is
> there a better strategy for containing the business layer main object,
> or a way to ensure that the AuthenticatedWebSession is created at the
> same time as the Application?

Like this maybe?

public class MySession extends AuthenticatedWebSession { ...

public class MyApplication extends WebApplication {
...
    @Override
    public WebSession newSession() {
        return new MySession();
    }
...
}

Best wishes,
Timo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to