I would like to use the following technologies to develop restful webservice.
Apache wink+Guice3+openjpa. I dont know how to use guice with wink and openjpa. could you please explain.
I would like to use the following technologies to develop restful webservice.
Apache wink+Guice3+openjpa. I dont know how to use guice with wink and openjpa. could you please explain.
I can't help you with OpenJPA, but I just now figured out how to use
GuicewithWink. First of all, you do not need to use Guice'sguice-servletJAR as you would with a plain webapp. Just set up your webapp to use Wink as you normally would, then follow these steps.wink-serverJAR with thewink-guice-serverJAR (available from the same source).Change the
servlet-classin yourweb.xmlfile fromto
Also in
web.xml, add this snippet to Wink's<servlet-class>element:Finally, create a new Wink
DeploymentConfigurationclass, which I call herecom.yourco.yourproj.DeploymentConfiguration.YourModuleis just a normal Guice module.