my dog learned polymorphism
The moose likes GWT and the fly likes GWT Backend Advise Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT Backend Advise" Watch "GWT Backend Advise" New topic

GWT Backend Advise

Jesus Boadas

Joined: Jul 04, 2012
Posts: 2


Im a noob here.

Well I have a big application in rails in the server and flex in the client side, the application use a lot of generated interactive charts and animations with drawing, images and forms geting the data from the server using xml-rpc, I was a big fan of Flash until the last notices from adobe about get rid of flash player on mobile and in general I think that the future of flash is very unstable, for that reason our company are evaluating the migration posibilities, for now Im refreshing my java knowledge (I didn't touch Java since late 90's). I choose Java over JavaScript because the strong type system and seems that GWT have all We need for the client side (The application must to work in the browser), but for the server side I'm not sure.

My question is GWT need something else to work on server side with a database ?.

I was looking in Google and the used solutions looks like a mix of frameworks but the Java information its overhelming (I admit its impresive, tons and tons of Java information sources), so far I found

For the data persistence We are going to use JPA with the Hibernate implementation (This seems to be a straight-forward).

For the server Jetty seems to be the best option but Im not sure. (Easy to use and lightweight)

For the framework:
- GWT Alone.
- Play Framework - looks good but this its confusing because the comunity its divided in two flavors of the framework and the Java side is the old release, the new releases are in Scala.
- Spring and all Its sons Spring MVC and Spring Roo - also looks good but its huge and have a sense of a very inclinated learning curve.
- J2EE with EJB ???
- GWT-Platform seems the best solution for me for now but we are still open to sugestions.

Can anyone with more Java experience could give us any advise or share experiences about these architectures and what is the best choice if any to use with GWT ?

Thanks in advance.

Jesus Boadas.
Radovan Vukovic

Joined: Nov 03, 2010
Posts: 19
GWT has 3 "layers" client, shared and server.
On server side you can use what ever is suitable for Java and database.

If you want to use Hibernate you need to know that domain objects used by hibernate cant be serialized. One of the strategies to solve this problem is using TDO...

I think GWTP is best solution... On such way you will not use Spring but insted of it you will use Guice
Jesus Boadas

Joined: Jul 04, 2012
Posts: 2

Also today I was looking Vaadin, Looks very good, have a lot of widgets based on GWT, now in version 6.8 its only server side but from version 7 its planed client side for offline applications. Any feedback on Vaadin ?
I agree. Here's the link:
subject: GWT Backend Advise
It's not a secret anymore!