Even if you don't use a custom servlet you need to modify 
http://code.google.com/p/jerseyguice/source/browse/trunk/src/com/googlecode/jerseyguice/JerseyGuiceProvider.java
 
to allow it to reuse an existing Injector. Secondly, what is going to 
happen if you have multiple resources. Will you have to declare 
@JerseyGuiceManaged on each one of them? Ideally I was thinking you want 
to assume a single Injector across all Jersey resources...

Gili

Sundar wrote:
> Hi Gili,
> 
>   Thanks for quick reply, and providing your code. It looks prety
> good, Also I understood why you don't like it.
> 
> Basicly I don't prefer to extend ServletContainer and create my own
> servlet. By archetecture it should come from ServiceLocator.
> 
> I have updated the code with service locator pattern, so now
> @JerseyGuiceManaged anatation works in all classes.
> 
> Look the sample
> http://code.google.com/p/jerseyguice/source/browse/trunk/src-example/com/googlecode/jerseyguice/example/UserVOProvider.java
> 
> Try using 0.2 version.
> 
> -Sundar
> 
> 
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to