LOCHART,DOUGLAS E <douglochart <at> cablespeed.com> writes:

> I wonder if the way I am doing it is causing a problem.
> 
>       // This will invalidate the session
>       IEngineServiceView engine = 
> (IEngineServiceView)cycle.getEngine();
>       try {
>           logDebug("Calling RESTART");
>           engine.restart( cycle );
>       }catch(IOException e) {
>           logError("Logout Exception:",e);
>       }

This is not a recommended way to terminate the session. You
should not do it in a listener. You should do it only in
a service. That's why the restart() method is only available 
in IEngineServiceView (the service's view on the engine).

For the user to initiate the logout, use a ServiceLink
component to invoke the restart service. For your internal
logic to intiate the logout, throw a RedirectException
to redirect to the restart service.



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

Reply via email to