Yes, it's legal (and we're doing similar things successfully, with a mix of
session and entity beans). As far as I understood, with entity beans the
<reentrant>True</reentrant> flag must be set in ejb-jar.xml (at least we set
it and it works, never tried without). With session beans, no special
settings are needed. Of course, this easily may lead to endless recursions,
so be careful...

> -----Ursprüngliche Nachricht-----
> Von: Alex Paransky [mailto:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 10. April 2001 01:42
> An: Orion-Interest
> Betreff: Callbacks on session beans... are they legal?
> 
> Is it legal for session bean A to create session bean B, and 
> pass it to
> session bean C so that C can call on B?
> 
> For example, if A is acting as a controller, B is acting as a 
> factory, and C
> is acting as an algorithm.  So a controller needs to execute 
> an algorithm
> which requires a factory as one of it's parameters.  As the 
> algorithm runs,
> it calls on the factory to create the resources it needs.
> 
> Thanks.
> -AP_
> 
> 

Reply via email to