Well thanks meetoblivion, I will try it and inform you the result
meetoblivion wrote: > > Mohammad, > > What I believe we were both referring to is the case of: > > @Stateless(mappedName="ejb/somePath") > public class MyEJB implements MyEJBService { > // methods... > } > > And then from your other class.. > > ejbContext.lookup("ejb/somePath") > > or > > ic.lookup("ejb/somePath") > > You're guaranteed to get the EJB mapped to that name. The app server > cannot > ignore the mappedName on the Stateless/Stateful annotation. It may also > put > it in other places, but you're guaranteed to get it mapped there. > > - John > ----- -- Regards Mohammad Norouzi Help each other to reach the future faster http://pixelshot.wordpress.com Pixelshot Photoblog http://brainable.blogspot.com Brainable Blog -- View this message in context: http://www.nabble.com/suggestion-for-defining-local-ref-name-for-session-beans-tp25420391p25440684.html Sent from the OpenEJB User mailing list archive at Nabble.com.