My current project is using java for backend service. I am using struts2 as WebFramework. Struts2 has a special plugin for serializing an deserializing Beans from and to JSON so that the serverside methods can consume and produce json without additional coding. A college of my did the same job on another project with Jersey and annotated Beans. If youre free to go with what you think its best i recommend Jersey https://jersey.dev.java.net/
Storing to the local database we mastered with activejs. ActiveJS serves you a Javascript Object on client side wich is bound to an entry in the local database with methods for serializing and desrializing to and from XML and JSON. This is quite comfortable for communicating the data back to the server. ActiveJS is like Gears very Beta but with a litte hacking it is doing the job fine. Our project does not use GWT for frontend and I just had very quick look at it but i am sure that GWT has a superior JSON support. Hope that helped a bit Stefan On Apr 13, 11:00 pm, fvisticot <[email protected]> wrote: > I would like to retrieve a simple POJO object (implementing > Serializable) from server and saving this java object into the Gears > database. > I have tried to use the WriteObject method from the > ByteArrayOutputStream class but it seems that this class is not > supported by the GWT JRE... > > What is the solution to save a Java object to the Gears database ? I > thought that native serialization/deserialization would be the best > approach but i don't know how to implement the solution... > > Of course i would like to avoid XML or text manual serialization/ > deserialization...
