concept spring in category gwt

appears as: Spring
GWT in Practice

This is an excerpt from Manning's book GWT in Practice.

This is a pretty simple class, but there are some important things to note about it. First, we aren’t using the @PersistenceUnit annotation to get our EntityManagerFactory . This would be the “regular” way to get EntityManagerFactory in Java EE 5. The Tomcat in GWTShell—or Tomcat in general, for that matter—doesn’t support Java EE 5 dependency injection. You can use Spring for this in regular Tomcat, but since all the servlets in the GWT shell are created by the shell proxy service, we can’t easily do this in hosted mode. So, we simply create the factory on our own in the constructor .

9.3. Wiring applications with Spring

Spring is all the rage. While Java EE 5 is, in our opinion, also very capable on its own for most tasks, it’s still a new kid on the block in terms of Java application frameworks. You may have a large investment in Spring technologies in your enterprise or application, so understanding how Spring relates to your GWT application is important. We’ll backtrack a bit and start by looking at the DAO classes for our Bookstore model, then how they are wired into the local service implementation with Spring.