What is the afterCompletion(boolean isCommitted) method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the afterCompletion(boolean isCommitted) method?
Rating:
The afterCompletion(boolean isCommitted) method of the SessionSynchronization interface is called after a transaction is committed or rolled back. Any operation that should be performed after the completion of the transaction can be performed in this method, as the status of the method, i.e., committed or rolled back, is known. This method cannot be used to perform any transaction-related methods such as getting the status of the transaction, finding out whether the transaction is marked for a roll back, etc. Moreover, this method cannot be used to access resource managers or other beans. However, the JNDI context can still be accessed from this method.
Rating:
Was this information helpful?
Other articles
- What is RemoveException?
- What is TransactionRolledbackException?
- What is the ejbRemove() method of a session bean?
- What is a finder method of an entity bean's home interface?
- What is the <method-intf> element of the deployment descriptor?