Andrzej Goławski [
http://community.jboss.org/people/andi-g] created the discussion
"Re: lookup a session bean inside a servlet"
To view the discussion, visit:
http://community.jboss.org/message/603203#603203
--------------------------------------------------------------
Put your BookShop.jar in JBOSS_HOME/server/.../deploy to deploy it into EJB container.
You can annoate your ejb bean using @RemoteBinding:
for example:
+@Stateless+
+@RemoteBinding(jndiBinding = "/BookShop/OperazioniUtenti/remote")+
+public class TesBean implements ....+
and after that you may use lookup inside your sevlet:
initialContext.lookup("/BookShop/OperazioniUtenti/remote");
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/603203#603203]
Start a new discussion in JNDI and Naming at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]