[jboss-user] [JNDI and Naming] - Re: lookup a session bean inside a servlet

Andrzej Goławski do-not-reply at jboss.com
Tue May 3 08:53:53 EDT 2011


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:

+ at Stateless+
+ at 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&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110503/77e278cf/attachment.html 


More information about the jboss-user mailing list