Monday, February 4, 2013

Re: RequestFactory - EntityManager and Server Side Question



On Monday, February 4, 2013 3:39:14 PM UTC+1, Manuel wrote:
Oh, ok :)
But actually I dont got a ServletModule... Or do I got one?
Or how to implement one?

So if i get this implemented, I got to use @Transactional and @Inject annotations on my employee class, right?

If you don't know what Guice and/or dependency injection is, then don't spend time right now trying to use it. You'd being doing you a disservice.

All you need for now is a servlet filter, and the OpenSessionInView page from the Hibernate wiki has all the code you need.

Then only you should start searching what dependency-injection is, what its benefits are, which tools you can use (Guice, Spring, Dagger, HK2 on the server-side; GIN in GWT client-side apps, and soon Dagger too).
But dependency injection is orthogonal to GWT, so this group is not the place to talk about it except for "I can't make it work with such or such GWT API" kind of support request.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment