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.
Archive for March 7th, 2010
What is the getStatus() method of the userTransaction interface?
Author: Daisy WilliamsMar 7