Hi,

I wondered why my application still worked, even when the session
timed out on the server. It still worked, because the current user is
also stored in my application and I never check this against the
server's session data.

However, I have a lot of services and each service has a lot of
methods. The only solution that comes into my mind is to check the
session on every service call, i. e. in every method:

class MyServiceImpl...
{
...
public void oneOfManyMethods ()
{
 if (sessionTimedOut ())
  gotoLoginPage ();
}

But this would be a bad solution, since I had to do this check in
every method. It would be much more elegant if there were a central
place for this code.

Can I place some code somewhere so that it will be executed on every
service call?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to