Thank you, that works.

Edo.

On Apr 18, 5:12 pm, Sripathi Krishnan <[email protected]>
wrote:
> In your Rpc Servlet implementation, you can choose to override the following
> methods -
>
> //Gets called BEFORE your RPC method is invoked,
> //Here, you can figure out which rpc method is going to be called, and what
> parameters are being passed to it.
> //Perfect place to plugin Authentication/Authorization code, start a perf
> timer, etc
> *protected void onAfterRequestDeserialized(RPCRequest rpcRequest)*
>
> //Gets called AFTER your RPC method has been invoked, and the data is ready
> to be sent back
> //Perfect place to put a performance logger like time taken to invoke such
> and such method = X ms
> *protected void onAfterResponseSerialized(String serializedResponse)*
>
> //Gets called whenever your underlying code threw an Exception that can't be
> serialized and sent to the client
> //Perfect place to put a Logger.error() so that you know what went wrong
> *protected void doUnexpectedFailure(Throwable e)*
>
> It is better to create a custom MyProjectRemoteServiceServlet, and change
> all your RPCServices to extend this class instead. That way, all your
> security/logging/authentication/authorization/performance monitoring etc.
> code is in a single place.
>
> --Sri
>
> On 18 April 2010 17:46, Edo <[email protected]> wrote:
>
>
>
> > Hello,
> > Is there a way to invoke a server method on each request received from
> > the client?
> > I want this method to perform some common actions for each client
> > request: logging, verify valid session, valid user etc.
> > Any ideas?
>
> > Thanks,
> > Edo
>
> > --
> > 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]<google-web-toolkit%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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