Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [EJB 3.0] - Re: Stateless session bean not bound

scott.stark@jboss.org

2007-07-18


Thanks for the replies. It still doesn't work, tried a dozen of jndi-lookup possibilities, but no success. However, injection works perfectly:


| public class TestServlet extends HttpServlet {
|  private @EJB ArticleManagerLocal artman;
|  public void doGet(HttpServletRequest req, HttpServletResponse res)
|  throws ServletException, IOException{
|      artman.testArticles();
|      PrintWriter out=res.getWriter();
|      out.println("Hello, world said davy!");
|      out.close();
| }
| }
|

As one is supposed to use injection in JBoss 5.0, I'll continue to use that.

Best regards,
Davy.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065532#4065532

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065532
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.