Anthony,

did you write it by mistake?
You need an ejb-ref or ejb-local-ref in order to access EJBs in java:comp/env
context.

alex

Monday, January 20, 2003, 5:01:12 PM, you wrote:

>> Why it is not possible to call an EJB from another EJB using
>> lookup("java:comp/env/ejb/EJBsName") ?

AG> It is possible to do this, but only for a remote Bean.

AG> Best Regards,
AG> Anthony Geoghegan.
AG> J2EE Developer
AG> CPS Ireland Ltd.
AG> ----- Original Message -----
AG> From: <[EMAIL PROTECTED]>
AG> To: <[EMAIL PROTECTED]>
AG> Sent: Monday, January 20, 2003 2:56 PM
AG> Subject: [JBoss-user] Calling an EJB from another EJB


>> Hi all.
>>
>> I wonder if it is possible for one of the developers of JBOSS to answer my
>> question:
>>
>> Why it is not possible to call an EJB from another EJB using
>> lookup("java:comp/env/ejb/EJBsName") ?
>>
>> I think this is a SUN's standart! Is it mandatory to declare an ejb-ref
>> between the 2 EJBs
>>
>> in order to use lookup("java:comp/env/ejb/EJBsName") ?
>>
>> Why is that?
>>
>> Thanks,
>> Vassilis




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to