JBoss Community

Re: lookup a session bean inside a servlet

created by Andrzej GoĊ‚awski in JNDI and Naming - View the full discussion

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

Start a new discussion in JNDI and Naming at Community