Unfortunately, EJB doesn't really have a shortcut -- you need to
repeat that block for each reference for each session bean. The best
approach to avoid it might be code generation (like XDoclet).
Thanks,
Aaron
On 6/6/06, Kevin <[EMAIL PROTECTED]> wrote:
Hi all,
In my session beans I need to lookup the local home interface of some other
entity beans. I have added the following paragraph to ejb-jar.xml of the
session beans:
<ejb-local-ref>
<ejb-ref-name>JNDI_NAME</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>myprog.SomeEntityLocalHome</local-home>
<local> myprog.SomeEntityLocal</local>
<ejb-link>SomeEntity</ejb-link>
</ejb-local-ref>
If I have to lookup about 40+ beans in this session, do I need to repeat the
above paragraph for 40+ times? Or is there any shortcut to place all the
beans to a wider scope?
Thanks,
Kevin