"treespace" wrote : Trying to use variable "server" throws a null pointer 
exception. 
  | 
  | 
  |   | public class Client
  |   | {
  |   |    @EJB Server server;
  |   | 
  |   |    execute(String operation)
  |   |    {
  |   |       server.execute(operation);
  |   |    }
  |   | }
  |   | 
  | 
  | Does @EJB lose its magic power in the web tier? 

If you mean by web tier, servlets, then yes, @EJB does not exist at the Servlet 
level as of 2.4.  It is one of the new features of 2.5 which JBoss doesn't 
support yet.  I believe this bit is in the trailblazer/EJB3 doc (though I admit 
its kinda hidden).  You still need to do JNDI lookups from a servlet to get 
accesss to the EJB tier.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931584


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to