Hi Stefan!
Thanks for your answer. I could solve the problem by declaring the bean
as "reentrant".
But which other implications would this have ?
Do I have to care then about multiple synchronous calls to the bean or
other stuff like that ?

Greets,
Tobias

Stefan Roper wrote:
> 
> Tobias,
> 
> this is a so called loopback. You have to consider more than one thing here:
> 
> 1. Your bean must allowed to be reentrant.
> 2. Your reference of Alice must be passed as the result of getEJBObject from your 
>Alice bean context.
> 
> In general this is allowed by the spec, but it is not recommended.
> The book Enterprise JavaBeans (Richard Monson-Haefel) says: Not for EJB Beginners :)
> 
> Stefan Roper
> 
> 
> SoftWork EDV GmbH
> Robert-Bosch-Str.12, 30989 Gehrden
> Tel: +49 5108 / 6402 -11   Fax: -29   Mobil: +49 177 / 277 48 71
> http://www.softwork-edv.de
> mailto:[EMAIL PROTECTED]
> 
> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Tobias Frech
> Gesendet: Donnerstag, 30. November 2000 23:15
> An: [EMAIL PROTECTED]
> Betreff: [jBoss-User] Is this in the specs ?
> 
> 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.
> 
> 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]
> N<.n�+?��n<,�ǫ�yb��(�H�?� ��&N<����r�>z6�ˬz�~X��
> +?)�v^,r??�?�zk#�|(�H�?� ��&


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

Reply via email to