org.rhq.enterprise.server.common
Class TransactionInterruptInterceptor

java.lang.Object
  extended by org.rhq.enterprise.server.common.TransactionInterruptInterceptor

public class TransactionInterruptInterceptor
extends Object

This EJB3 interceptor's job is to install a new JBossTM CheckedAction on the request thread's current transaction. The reason for this is technical, but in short, this allows SLSB methods to be notified when a transaction has timed out so the SLSB can abort what it is doing if it deems appropriate. The current thread's transaction will get a new CheckedAction that will simply interrupt all threads that are currently associated with it.

Author:
John Mazzitelli

Nested Class Summary
 class TransactionInterruptInterceptor.TransactionInterruptCheckedAction
           
 
Constructor Summary
TransactionInterruptInterceptor()
           
 
Method Summary
 Object addCheckedActionToTransactionManager(javax.interceptor.InvocationContext invocation_context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionInterruptInterceptor

public TransactionInterruptInterceptor()
Method Detail

addCheckedActionToTransactionManager

public Object addCheckedActionToTransactionManager(javax.interceptor.InvocationContext invocation_context)
                                            throws Exception
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.