Re: RequestFactory don't play nice with guice?
Since GWT 2.1.1 is here:
Another way of doing it would be to just use a normal ServletModule as
per the Guice user guide: http://code.google.com/docreader/#p=google-guice&s=google-guice&t=ServletModule
Then bind the RequestFactoryServlet;
bind(RequestFactoryServlet.class).in(Singleton.class);
serve("/gwtRequest").with(RequestFactoryServlet.class);
Otherwise following the RequestFactory documentation you can use:
requestStaticInjection(MyDomainClass.class)
in your module to inject the PersistenceManager (or EntityManager)
statically.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home