On Tue, Sep 16, 2008 at 2:26 PM, Fredrik Hedberg (JIRA) <[EMAIL PROTECTED]> wrote: > > [ > https://issues.apache.org/jira/browse/THRIFT-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631362#action_12631362 > ] > > Fredrik Hedberg commented on THRIFT-137: > ---------------------------------------- > > Ah, now I better understand what you did ;) > > However, I'm not sure I understand the use-case here. Why would one want to > generate GWT RPC services definitions from Thrift IDLs rather than creating > them manually, when it's impossible to produce or consume these services > without using the GWT RPC framework (ie. nothing but the GWT client could > consume them, and nothing but a Java servlet implementing GWT's > RemoteServiceServlet could produce them)?
I actually produce both versions, the *pure* Thrift one and the GWT one. The GWT services are consumed from the frontend and the Thrift ones on the backend, the GWT service is mainly a light gateway to the Thrift service, simply doing some trivial checks and converting the GWT version of a struct to its pure Thrift counterpart. This allows me to maintain coherency and simplicity throughout the code. Mathias.
