Package org.jboss.narayana.jta.jms
Class ConnectionClosingSynchronization
- java.lang.Object
-
- org.jboss.narayana.jta.jms.ConnectionClosingSynchronization
-
- All Implemented Interfaces:
javax.transaction.Synchronization
public class ConnectionClosingSynchronization extends java.lang.Object implements javax.transaction.SynchronizationSynchronization to close JMS connection at the end of the transaction.- Author:
- Gytis Trikleris
-
-
Constructor Summary
Constructors Constructor Description ConnectionClosingSynchronization(javax.jms.Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCompletion(int status)Close the connection 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 connection no matter what the status of the transaction is.- Specified by:
afterCompletionin interfacejavax.transaction.Synchronization- Parameters:
status- the status of the completed transaction
-
-