Are you hitting a Stateful Session Bean or a Stateless one? According to the EBJ spec, it is illegal to hit a transactional Stateful one from two threads simultaneously that have the same bean handle.

David

--

Beau Cronin escribió::
I have a Swing app which is essentially single-threaded, accessing the server in the usual way through a session facade. I'd like to do some background loading of certain data for performance reasons, but when I try to do this by using a separate thread (and separate session instance), I get various transaction collision problems if these two threads access the server at the same time.

I'm obviously missing something here--shouldn't different remote client threads from the same client be able to access JBoss simultaneously in the same way that entirely different clients can? I.e., shouldn't they spawn separate transactions which are scheduled appropriately by JBoss?

Any clarification appreciated,

Beau Cronin



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to