Hi , 1st Problem can be solved using Commit Option B/C. Refer to TX related Stuff.
2nd Prob is due to the fact that you are iterating the CMR Collection In a different TX. Error Message is explanatory. Are you using TXNew Attribute in one of your methods? It may be due to this. Ex: SLSB A.doSomething() ---- B.getX() A.doSomething() has TX Required And B.getX() has TX New and it returns You a CMR Collection. Of Course, there may be other combinations as well. -Saroj -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Beau Cronin Sent: Tuesday, November 26, 2002 3:18 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] multi-threaded remote client 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