SCJP Certification

Sun Certified Java Programmer Certification exam essentials

March 7th, 2010

What is the getStatus() method of the userTransaction interface?

SCBCD, Uncategorized, by Daisy Williams.

The getStatus() method of the UserTransaction interface returns the status of the current transaction. Since this method is present in the UserTransaction interface, it can be called only for a BMT bean, but not for a CMT bean. This method can be used to find out whether or not a transaction has been marked for a rollback. If this method is called on a thread that has no transaction associated, it returns the Status.NoTransaction value.

Share

Back Top

Responses to “What is the getStatus() method of the userTransaction interface?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*