[jboss-user] [EJB 3.0] - EJB Jndi lookup name

Dens do-not-reply at jboss.com
Thu Aug 31 11:54:43 EDT 2006


Extracted from last version of EJB3 spec (chapter 3.6.1):
anonymous wrote : For example, an EJB 3.0 client, com.acme.example.MySessionBean, might obtain a reference
  | to a bean?s home interface as follows:
  | @EJB CartHome cartHome;
  | This home interface could be looked up in JNDI using the EJBContext lookup method as shown in the
  | following code segment:
  | @Resource SessionContext ctx;
  | ...
  | CartHome cartHome =
  | (CartHome)ctx.lookup(?com.acme.example.MySessionBean/cartHome?);

I can understand why the client class name must be set in the jndi name..... 

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

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



More information about the jboss-user mailing list