users@glassfish.java.net

Re: How to look up local bean from servlet

From: <glassfish_at_javadesktop.org>
Date: Mon, 28 Sep 2009 14:20:26 PDT

Hi,

according to https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#POJOLocalEJB you should annotate your servlet class with the @EJB annotation. E.g.:

@EJB(name="Ticc", beanInterface=Ticc.class)

Cheers
Chris.
[Message sent by forum member 'chrjohn' (christoph.john_at_macd.com)]

http://forums.java.net/jive/thread.jspa?messageID=366118