On Friday, June 24, 2011 2:50:27 PM UTC+2, obesga wrote: > > Hello > > I've a problem with an application, the application works fine but the > new 'firewall' system drops the RPC calls. >
I'd be interesting to understand why it drops them, so that your "new" protocol won't be blacklisted either. > So I'm thinking about rewriting GWT-RPC calls to GWT-JSON > > I've a lot of simple POJO objects that are used into the app, the > classes are written and can't change very much ( as they are used > acrros the server, including database DAO) > > ¿ which are your preferred / less painfull (less boilerplate > code) methods to convert from JSON to POJO in GWT ? > - Autobeans > You won't be able to reuse your POJOs, but if you can convert them to interfaces, then that's an option (AFAICT, you can also have POJOs implementing the interface and thus wrap a POJO instance in an AutoBean; but that'd only help with serializing, IIUC, not deserializing JSON to POJOs) - JSON Overlay types > You won't be able to reuse your POJOs on the client side; and you'd have to serialize them to/from JSON on the server-side (fortunately, there are many tools to help you: GSON, Jackson, etc.) Have a look at the Piriti project too as, IIRC, it could handle that quite easily (including the GWT-client part) > - Use simple HTTP with String parse > I don't see any advantage over JSON, and the major drawbacks of having to write a parser and serializer by hand. > - Other ( explain please...) RequestFactory: - you'll leverage your POJOs on the server-side, and transforming GWT-RPC services to RF ones should be really easy. - you'll have to write the proxies, but that could be automated (that's what we do). If you domain model is stable enough, you could also simply iterate with your IDE's "extract interface" feature and a bit of tweaking by hand. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/S1KstHk_EWUJ. 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.
