Hey,

> Hi!
> I wonder if the following thing is allowed by the EJB specs 1.1:
> 
> We have: bean Alice and bean Bob deployed on the container.
> 
> 1.  AliceHome.create()
> 2.  -> AliceBean.ejbCreate(), done
> 3.  -> AliceBean.ejbPostCreate()
> 4.     -> BobHome.create(Alice)
> 5.        -> BobBean.ejbCreate(Alice), done
> 6.        -> BobBean.ejbPostCreate(Alice)
> 7.           -> Alice.getSomeAttribut(), done
> 8.        6. done
> 9.      4. done
> 10.   3. done
> 11. 1. done
> 
> Is this allowed by the specs ? How SHOULD jBoss react ? Right now the
> bean hangs directly at step 7 (BobBean is left but Alice is 
> not reached
> !) in my code.

This kind of beans (Alice) is called reentrant; jboss supports them of
course, simply specify in ejb-jar.xml that the bean is reentrant (see
ejb-jar documentation on where in the xml tree specify this), cause the
default is that they aren't (and hence your problem).
Remember though that use of this kind of beans is discouraged by the EJB1.1
spec.

HTH,

Simon

> 
> After waiting a long time I get a TIMEOUT exception (-> 
> ROLLBACK). There
> is also a bean mentionend in the trace with som XidImpl stuff that
> should not be involved in the proccess at all.
> 
> Any ideas ?
> 
> Tobias
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to