Package org.jboss.narayana.jta.jms
Class SessionClosingSynchronization
java.lang.Object
org.jboss.narayana.jta.jms.SessionClosingSynchronization
- All Implemented Interfaces:
jakarta.transaction.Synchronization
public class SessionClosingSynchronization
extends Object
implements jakarta.transaction.Synchronization
Synchronization to close JMS session at the end of the transaction.
- Author:
- Gytis Trikleris
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(int status) Close the session no matter what the status of the transaction is.void
-
Constructor Details
-
SessionClosingSynchronization
- Parameters:
session
- session to be closed.
-
-
Method Details
-
beforeCompletion
public void beforeCompletion()- Specified by:
beforeCompletion
in interfacejakarta.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status) Close the session no matter what the status of the transaction is.- Specified by:
afterCompletion
in interfacejakarta.transaction.Synchronization
- Parameters:
status
- the status of the completed transaction
-