dev@glassfish.java.net

Re: GlassFish V3 / Web Beans

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 30 Apr 2009 18:45:25 +0200

On Apr 30, 2009, at 6:11 PM, Sahoo wrote:

> Ludovic Champenois wrote:
>>
>> I agree with Paul: we need samples...
>
> You can find samples at http://anonsvn.jboss.org/repos/webbeans/examples/trunk
>

I looked at those, but they did not help me get a very simple servlet
example working.

   public class NewServlet extends HttpServlet {

       @Current Manager m;

       @PostConstruct
       public void postConstruct() {
           System.out.println("@Current Manager: " + m);
       }


       ...

   }

The servlet shown above will print "@Current Manager: null".

So i am guessing basic servlet integration still needs to be wired up
to the webbeans SPI.

Paul.