geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin <pop...@gmail.com>
Subject Local JNDI lookup again...
Date Tue, 06 Jun 2006 08:06:07 GMT
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

Mime
View raw message