I'm using a tweaked version of contribs/jersey-guice, part of the
jersey project. See
https://jersey.dev.java.net/nonav/apidocs/1.1.5/contribs/jersey-guice/index.html

Eelco

On Thu, Mar 4, 2010 at 5:58 AM, nino martinez wael
<[email protected]> wrote:
> Hi Guys
>
> First of all thank you for creating guice, it's much more light weight than
> spring (or at least as spring was before version 2.5).
>
> I need to use this http://docs.sun.com/app/docs/doc/820-7627/giqdq java's
> restfull framework, the grizzly version  together with guice. But can't
> really see howto integrate? Anyone would know how?
>
> Bob wrote something on it here :
> http://crazybob.org/2009/05/announcing-javaxinjectinject.html I guess just
> announcing stuff. But how do I actually integrate?
>
> The Grizzly archetype produces some different thins, but most interesting
> this start up main.java:
>
>     protected static SelectorThread startServer() throws IOException {
>         final Map<String, String> initParams = new HashMap<String,
> String>();
>
>         initParams.put("com.sun.jersey.config.property.packages",
>                 "com.netdesign.rest");
>
>         System.out.println("Starting grizzly...");
>         SelectorThread threadSelector =
> GrizzlyWebContainerFactory.create(BASE_URI, initParams);
>         return threadSelector;
>     }
>
>     public static void main(String[] args) throws IOException {
>         SelectorThread threadSelector = startServer();
>         System.out.println(String.format("Jersey app started with WADL
> available at "
>                 + "%sapplication.wadl\nHit enter to stop it...",
>                 BASE_URI));
>         System.in.read();
>         threadSelector.stopEndpoint();
>     }
> }
>
> Or should I choose the archetype that builds a war file and add guice as a
> filter the ordinary way?
>
> Regards Nino
>
> --
> 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.
>

-- 
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