At 05:30 PM 13/12/99 -0500, Halas, Miroslav wrote:
>I have following problem:
Why are you doing this in the first place? It seems an off thing to do with
entity beans? Can you elaborate on what you are trying to achieve
as a session bean might be more sensible to wrap all the transactions
with ...
Most servers will have a new instance of an class for entity beans if
the primary keys differ, but I'm not sure how they will handle this
sort of transactional locking ...
>I am creating new instance of entity bean A which in ejbCreate() calls
>findByPrimaryKey() to find another (different) instance of entity bean A and
>then invoke some methods on it. Is bean A considered to be a reentrant bean?
>When I run my example, the Jonas appears to hang up. The last traces I can
>see from Jonas are
>
>Current.getTransaction()
>inRequest --->
>Current.setPropagationContext(null) -> detach
>
>This code works on both Weblogic 4.5.1 and Websphere AE 3.0. I have tried to
>change transaction (to not_supported, required_new and others) attribute for
>that bean but it didn't help. What helped was to move the findByPrimaryKey()
>outside of ejbCreate() method. What is causing the problem in Jonas? Is it
>that Jonas doesn't support reentrant beans?
>
>Miroslav Halas
>Software Engineer
>Compuware Corp.
>15305 Dallas Parkway
>Suite 900
>Addison, TX 75001
>phone 9720-960-0960 x 1333
>fax 972-960-8489
>
--
two new projects from Mr Grumpy and friends ...
* A Story in Two Voices - Hypertext fiction
http://www.cyber4.org/members/grumpy/special/wnm/index.html
* yum! - Information Architecture example site
http://www.cyber4.org/members/grumpy/special/yum/index.html