any idea on this??
On 24 Feb, 09:18, federico <[email protected]> wrote:
> Hi
> i'd like to do the override of RemoteServiceServlet.processCall to
> insert the code for processing my custom annotations on service
> invocations.
> I've noted how the default processCall make use of the RPC class:
> ...
> return RPC.invokeAndEncodeResponse(this, rpcRequest.getMethod(),
> rpcRequest.getParameters(), rpcRequest.getSerializationPolicy
> ());
> ...
>
> and expecially the method invokeAndEncodeResponse that i found
> difficult to reuse due to the fact that it has two distinct
> responsabilities when maybe it would be better to have splitted this
> method in two... anyway
> the problem i have it's this:
> in my processCall i'd like to have access to catch the exceptions
> throwed by my service method but
> invokeAndEncodeResponse don't rethrow an exception occurred during the
> service invocation, and of course it can't because normally it must
> encode the exception in the returned payload.
>
> On the other sida i'd like very much to reuse the RPC class because it
> do a lot of interesting things that i don't want to lose, any opinions
> on this...
>
> federico
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---