The deRPC code went into trunk a week or so ago, and no initial fires
have been reported. I'd like to get folks on GWTC to give it a
shakedown.
Quickstart (for vanilla configurations):
- Inherit com.google.gwt.rpc.Rpc in your gwt.xml file
- Change your remote service interfaces to extend
com.google.gwt.rpc.client.RpcService
- Change your servlet to extend com.google.gwt.rpc.server.RpcServlet
Right now, the new code base should be functionally equivalent to the
legacy RPC system. The plan is to get the new code base stabilized
with the existing feature set, before adding new features.
Slowstart (for people doing their own thing)
- The gwt.rpc file is now mandatory for operation of the RPC system.
It's no longer just a policy file, but contains metadata about any
given permutation. You can override RpcServlet.findClientOracleData()
to alter how this data is retrieved.
- If you have been using the static gwt.user.rpc.server.RPC utility
class, there is a new formulation of the same in gwt.rpc.server.RPC.
Instances of the ClientOracle type can be obtained from
WebModeClientOracle.load() or simply instantiating a
HostedModeClientOracle.
- If you want your servlet to be able to talk to both legacy and new
RPC clients, extend HybridServiceServlet.
I'm mainly looking for the following kinds of feedback:
- Knowing that it did work is helpful.
- If it doesn't work, please tell me how it breaks:
- Run your JVM with -Dgwt.rpc.dumpPayload=true to have RpcServlet
emit the incoming and outgoing payloads to System.out.
- There are a lot of low-hanging optimizations that remain to be
done. If you have any particular metrics or features that you
particularly care about, let me know so I can prioritize accordingly.
Why switch?
- Faster IE6 performance
- Hosted Mode clients don't need a serialization policy file pushed
to the server, so you can more easily test changes to client code in a
-noserver configuration.
- A much more hackable code base to add oft-requested features to
the GWT RPC system.
--
Bob Vawter
Google Web Toolkit Team
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---