Thanks for your prompt response. I am now looking at the code of TransactionImpl.java 
in the JBoss 3.2.5  source and the JTA specification. My understanding is that 
delisting should only happen on commited transactions - so why does the JBoss 
implementation throw an exception if a resource is committed? i.e. from 
delistResource()...

case Status.STATUS_COMMITTED:
   throw new IllegalStateException("Already committed.");

In fact, looking at the trace this seems to make no sense at all:

2004-08-24 11:47:50,021 TRACE [org.jboss.tm.TransactionImpl] calling sync 1, [EMAIL 
PROTECTED]
2004-08-24 11:47:50,021 TRACE [org.jboss.tm.TransactionImpl] Before completion done, 
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=socks//30, BranchQual=], 
status=STATUS_ACTIVE
2004-08-24 11:47:50,021 TRACE [org.jboss.tm.TransactionImpl] endresources(0): state=1
2004-08-24 11:47:50,021 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl 
[FormatId=257, GlobalId=socks//30, BranchQual=1]) entered: [EMAIL PROTECTED] 
flag=67108864
2004-08-24 11:47:50,041 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl 
[FormatId=257, GlobalId=socks//30, BranchQual=1]) leaving: [EMAIL PROTECTED] 
flag=67108864
2004-08-24 11:47:50,041 TRACE [org.jboss.tm.TransactionImpl] One phase commit: One 
resource.
2004-08-24 11:47:50,041 TRACE [org.jboss.tm.TransactionImpl] Committing resources, 
resourceStates[0]=3
2004-08-24 11:47:50,151 TRACE [org.jboss.tm.TransactionImpl] delistResource(): 
Entered, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=socks//30, BranchQual=] 
status=STATUS_COMMITED

The transaction manager explicitly commits the resources and then calls 
delistResource() - so of course it is already committed.

I would be most grateful if someone who understands why this is so could clarify it to 
me.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846002#3846002

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846002


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to