Hello,

I'm trying to debug some deadlock problems with my code and wanted
clarification on the use of stateful session beans.  Here's the
scenario:

Stateful session bean keyed on String name -- Topic
Stateless session bean -- Exchange

In _two_ concurrent threads the following code sequence is executed:

TopicHome.create ("x")
    Topic.methodA()
        ... some processing
            ExchangeHome.create()
                Exchange.methodC()
                    TopicHome.create("y")
                        Topic.methodB()            (*) deadlock
exception

Q:  Is this legal to do?  In my development environment (Orion 1.1.37),
I get deadlock exceptions when either of the threads executes
Topic.methodB() above.  I _think_ the code is well behaved.  The threads
run fine sequentially.  Am I wrong in thinking that the above sequence
should work correctly?  I would appreciate any help on this.  I have to
solve this.

Thanks,
Vidur


Reply via email to