Metrona,

Using the direct JNDI name of the local bean will not
work. You have to use the "ejb-local-ref" tag in the
deployment descriptor and then perform a lookup in the
Environment Naming Context of the EJB (java:comp/env/).

The fact that a direct JNDI name lookup works in certain
AppServers would actually be a bug.

Sometime ago, I wrote a little writeup on the same
topic, and that might be a useful read (paste complete
link into your web browser):

http://newsgroups.borland.com/cgi-bin/dnewsweb?cmd=article&group=borland
.public.bes.appserver.naming&item=699&utag=

-krish
Borland

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]] On Behalf Of Metrona D'souza
Sent: 21 December 2002 06:52
To: [EMAIL PROTECTED]
Subject: Looking up local beans


hi

i am new to EJB2.0 have worked with EJB1.1
was trying out the local interface beans ..
for e.g. i have my customers bean and my addresses
my customer bean has a remote home and remote interface and bean
this bean within calls and talks to the local address bean ..
.. i am am a little confused on the point of how do i look up the local
address bean within my customer bean...
do i do i directly using my local JNDI name of the address bean or how
??

thanks in advance

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to