I don't know much about this area, but I wonder if you are using user
transactions from your client(s).  In any case knowing exactly where tx are
being started/stopped/controlled would be useful.

david jencks

On 2002.11.25 16:48:21 -0500 Beau Cronin wrote:
> Hi all.  I've been having problems with a multi-threaded remote client. 
>   I'd like to have two threads on a client accessing JBoss remotely, 
> possibly the same data at the same time.  When I do this naively and 
> both clients try to access the same entities, JBoss throws one of two 
> errors:
> 
> 13:40:57,457 ERROR [BeanLock] Application deadlock detected: 
> TransactionImpl:XidImpl [FormatId=257, 
> GlobalId=misosoup.ICSI.Berkeley.EDU//19663, BranchQual=] has deadlock 
> conditions.  Two or more transactions contending for same resources and 
> each have locks eachother need.
> 
> or
> 
> 13:43:09,470 ERROR [STDERR] 
> javax.ejb.TransactionRolledbackLocalException: The iterator of a CMR 
> collection may only be used within the transction in which it which it 
> was created
> 
> In the first case, it seems like each thread is creating its own 
> transaction and that these transactions are in contention.  In the 
> second, it seems like both threads are triggering calls in the same 
> transaction and that these are trying to iterate over the same CMR 
> Collection.
> 
> I've tried using both the same remote object and different ones; both 
> situations lead to the same result.
> 
> So the question is: how do I do multithreaded remote access from a 
> client to avoid this?  Note that different clients don't have this 
> problem, only mutlitple threads from the same client.
> 
> Thanks,
> 
> Beau Cronin
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to