geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: Local JNDI lookup again...
Date Tue, 06 Jun 2006 12:48:28 GMT
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 <popkev@gmail.com> 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
>

Mime
View raw message