The unit tests are full of examples of an ejb invoking another ejb using both remote
and local interfaces. You must declare ejb-refs to create the java:comp/env bindings
in the calling EJBs local JNDI environment.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

----- Original Message ----- 
From: "Anthony Geoghegan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 7:01 AM
Subject: Re: [JBoss-user] Calling an EJB from another EJB


> > Why it is not possible to call an EJB from another EJB using
> > lookup("java:comp/env/ejb/EJBsName") ?
> 
> It is possible to do this, but only for a remote Bean.
> 
> Best Regards,
> Anthony Geoghegan.
> J2EE Developer
> CPS Ireland Ltd.
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 20, 2003 2:56 PM
> 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
> >
> 
> 
> 
> -------------------------------------------------------
> 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
> 


-------------------------------------------------------
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