Package org.jboss.narayana.jta.jms
Class SessionClosingSynchronization
- java.lang.Object
-
- org.jboss.narayana.jta.jms.SessionClosingSynchronization
-
- All Implemented Interfaces:
javax.transaction.Synchronization
public class SessionClosingSynchronization extends java.lang.Object implements javax.transaction.SynchronizationSynchronization to close JMS session at the end of the transaction.- Author:
- Gytis Trikleris
-
-
Constructor Summary
Constructors Constructor Description SessionClosingSynchronization(java.lang.AutoCloseable session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCompletion(int status)Close the session no matter what the status of the transaction is.voidbeforeCompletion()
-
-
-
Method Detail
-
beforeCompletion
public void beforeCompletion()
- Specified by:
beforeCompletionin interfacejavax.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status)
Close the session no matter what the status of the transaction is.- Specified by:
afterCompletionin interfacejavax.transaction.Synchronization- Parameters:
status- the status of the completed transaction
-
-