[jboss-user] [EJB 3.0] - Re: Context lookup

Wolfgang Knauf do-not-reply at jboss.com
Tue Nov 13 07:24:23 EST 2007


Hi !

By default, JBoss places EJBs in JNDI according to this naming rules:
-"EARName/BeanName/remote" for remote interfaces
-"EARName/BeanName/local" for remote interfaces.
If the EJB jar is not part of an EAR file, then "EARName" is not present. 
So, the lookup for "userProfileBean/remote" will find an interface annotated with "@Remote", while "userProfileBean/local" will find an interface annotated with "@Local".

Hope this clears things

Wolfgang

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

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



More information about the jboss-user mailing list