[jboss-user] [EJB 3.0] - Re: Programmatically determining ear name for JNDI lookups:
wolfc
do-not-reply at jboss.com
Mon Sep 17 05:09:48 EDT 2007
Have you tried using ejb-links?
<ejb-local-ref>
| <ejb-ref-name>ejb/myBean</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local>com.mycomp.MyLocal</local>
| <ejb-link>MyBean</ejb-link>
| </ejb-local-ref>
MyLocal bean = (MyLocal) new InitialContext().lookup("java:comp/env/ejb/myBean");
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084930#4084930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084930
More information about the jboss-user
mailing list