org.jboss.ejb3.tx
Class StatefulBMTInterceptor

java.lang.Object
  extended by org.jboss.ejb3.tx.AbstractInterceptor
      extended by org.jboss.ejb3.tx.BMTInterceptor
          extended by org.jboss.ejb3.tx.StatefulBMTInterceptor
All Implemented Interfaces:
org.jboss.aop.advice.Interceptor

public class StatefulBMTInterceptor
extends BMTInterceptor

EJB 3 13.6.1: In the case of a stateful session bean, it is possible that the business method that started a transaction completes without committing or rolling back the transaction. In such a case, the container must retain the association between the transaction and the instance across multiple client calls until the instance commits or rolls back the transaction. When the client invokes the next business method, the container must invoke the business method (and any applicable interceptor methods for the bean) in this transac- tion context.

Version:
$Revision: $
Author:
Carlo de Wolf

Field Summary
 
Fields inherited from class org.jboss.ejb3.tx.BMTInterceptor
tm
 
Constructor Summary
StatefulBMTInterceptor(TransactionManager tm)
           
 
Method Summary
protected  Object handleInvocation(org.jboss.aop.joinpoint.Invocation invocation)
           
 
Methods inherited from class org.jboss.ejb3.tx.BMTInterceptor
invoke
 
Methods inherited from class org.jboss.ejb3.tx.AbstractInterceptor
getContainer, getName, resolveAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulBMTInterceptor

public StatefulBMTInterceptor(TransactionManager tm)
Parameters:
tm -
Method Detail

handleInvocation

protected Object handleInvocation(org.jboss.aop.joinpoint.Invocation invocation)
                           throws Throwable
Specified by:
handleInvocation in class BMTInterceptor
Throws:
Throwable


Copyright © 2008 JBoss Inc.. All Rights Reserved.