Am I correct in thinking that the above type of app can be created as a combination of GWT and Java code?
GWT is Java code, the client part will be compiled into Javascript. You can use any Java API in the services on the server side, in my current project I'm using among others Swing, JPA, Hibernate, Guice, log4j and access MongoDB and Mysql databases.
How do I arrange the code of the packages mentioned above, in my src folder.
This is my layout:
src/main/java:org.foo.bar.client - GWT client code (activities, events, MVP, places, entry point class)org.foo.bar.controller - one Swing MVC Controller for my login page (I handle login outside of GWT at the moment)org.foo.bar.security - My Spring Security classes (Authentication Listener/Provider etc.)org.foo.bar.server.repository - Spring JPA repositoriesorg.foo.bar.server.service - RPC servicesorg.foo.bar.shared - domain classes (JPA entities), they are used both by the client and serversrc/main/resources:org/foo/bar/client/ - property files (constants and messages) for internationalizationMETA-INF/persistence.xml - for JPAlog4j - logging configuration
do I run it as web application under Google Menu in Eclipse
A GWT project generated in Eclipse contains a working ant build script that can create a war for you. You can then deploy it in your web container of preference like Tomcat, Jetty... However the compilation (the part that generates the client javascript) takes a long time so for testing use the GWT development mode in Eclipse - you'll have to install a plugin for your web browser to take advantage of it.