I’m starting to study GWT now, and have a very general question, I could maybe teach myself with a little more experience, but I don’t want to start it wrong, so I decided to ask you.
I always develop using JSF, having separate packages for beans, controllers and managedbeans.
However, as the GWT uses RPC, I will not have managedbeans, right?
So, GWT automatically handles user session for me, or do I have to do it myself?
What is the best package structure for the project?
It is best to use RPC, or create a webservice and access the webservice in GWT?
It’s hard to host the application on a tomcat server?
Is there a test saying which server is faster for GWT?
Thank you.
True, GWT RPC uses POJOs.
GWT is pure AJAX APP – client code (normally) runs in one browser window (similar to gmail) and does not reload the web page. This means that the application state is always there – no need for sessions (as a means of saving state). You still might need sessions for user authentication, but this is usually handled by servlet container.
Three packages:
client,serverandshared.Clientfor GWT client code,serverfor server (also RPC) code andsharedfor POJOs that are used by both client and server.Go with GWT-RPC or (better, newer) with RequestFactory.
It’s straightforward: GWT client code is compiled to JS/html and is hosted as any static content. RPC server code is just Servlets – normal web.xml registration.
No clue, but IMHO does not matter, because most of the latency will come from database and network.