Hi Cristian,
Questions:
1) private void bindServices() {
bind(UserService.class).to(UserServiceImpl.class);
}
the @ImplementedBy annotation does not work?
2) Did you modifify the pom.xml to use Guice 2.0 or did you keep it
with Guice 3.0-RC2? In the RC2 version warp-persistence is integrated
as guice-persist. We should use that library instead if it`s
compatible, which is should be I think.
Regards
Good! Excellent work. One more detail, all requests to server should go through resteasyso this: <param-value>/rest-services</param-value>should be : <param-value>/*</param-value>
same for the resteasy servlet
One more question, I thought from the guice documentation that the listener (in our case the Boostrap class) was needed by guice to in order for it to start everything. But know I see that RESTeasy is the entry point. :-)
Turns out the listener approach would be good for our own custom servlet implementation, but there is no need for that since RESTeasy has a it`s own servlet that handles everything. Does this reasoning sound right or I am missing something?
RegardsRichardOn Mon, Feb 14, 2011 at 9:31 AM, Cristian Olaru <col...@gmail.com> wrote:
On Mon, Feb 14, 2011 at 4:22 PM, transmeta01 <trans...@gmail.com> wrote:
Hi Cristian,
Questions:
1) private void bindServices() {
bind(UserService.class).to(UserServiceImpl.class);
}
the @ImplementedBy annotation does not work?
Aha - I didn't look in the services - I will give it a try to see if it works - if yes - I will remove this bindServices method.
2) Did you modifify the pom.xml to use Guice 2.0 or did you keep it
with Guice 3.0-RC2? In the RC2 version warp-persistence is integrated
as guice-persist. We should use that library instead if it`s
compatible, which is should be I think.
RestEasy is integrated with guice 2. It doesn't work with Guice 3. That's way I keep guice 2 and warp-persistence.
Regards
--
Cristian Olaru
weblog: http://olaru.blogspot.com
mobile: 0743163039