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.