[JBoss-user] Calling an EJB from another EJB

2003-01-20 Thread Mokas Vassilis ([EMAIL PROTECTED])
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



Re: [JBoss-user] Calling an EJB from another EJB

2003-01-20 Thread Anthony Geoghegan
 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



RE: [JBoss-user] Calling an EJB from another EJB

2003-01-20 Thread Oskari Kettunen
What do you mean only for a remote? This works just fine for me:

...
 ejb-local-ref 
ejb-ref-nameejb/FooLocal/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
local-homex.y.z.FooLocalHome/local-home
localx.y.z.FooLocal/local
ejb-linkFoo/ejb-link
 /ejb-local-ref
...

Oskari Kettunen,
Krocus Communications Oy
Finland




 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of 
 Anthony Geoghegan
 Sent: 20. tammikuuta 2003 17:01
 To: [EMAIL PROTECTED]
 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



Re: [JBoss-user] Calling an EJB from another EJB

2003-01-20 Thread Scott M Stark
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.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- 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