Hi,
I am using a combination of JCA-Global transaction-WLS6.1SP3.
I have a BMT stateful session bean with a business method like this:
public void cancelTransaction(){
try{
context.getUserTransaction().rollback();
} catch(Exception e) {
//exception handling.
}
finally {
xaConnection.close();
}
}
When I invoke this business method the WLS appserver hangs and finally
timesout while doing the rollback.
But when I place the xaConnection.close() call before the rollback()
call things go smoothly.
My question is:
* Why am I seeing this behavior for rollbacks only? The above method
works fine if it is for commit i.e. close connection being called after
commit().
* Is it a strict rule of JTA to call close connection before
commit/rollback?
I see it in the JTA specs but do not see anything to the effect of
strictness.
I also see the above usage of commit/rollback & close connection call
usage in many 3rd party code examples.
* What is the status of the community on this respect? Is WLS behaving
according to specs?
Thanks for your help,
Gurdev
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".