Class StatefulRemoveInterceptor

java.lang.Object
org.jboss.as.ejb3.component.stateful.StatefulRemoveInterceptor
All Implemented Interfaces:
org.jboss.invocation.Interceptor

public class StatefulRemoveInterceptor extends Object implements org.jboss.invocation.Interceptor
An interceptor which handles an invocation on a Remove method of a stateful session bean. This interceptor removes the stateful session once the method completes (either successfully or with an exception). If the remove method was marked with "retainIfException" to true and if the remove method threw a ApplicationException then this interceptor does *not* remove the stateful session.

User: Jaikiran Pai

  • Constructor Details

    • StatefulRemoveInterceptor

      public StatefulRemoveInterceptor(boolean retainIfException)
  • Method Details

    • processInvocation

      public Object processInvocation(org.jboss.invocation.InterceptorContext context) throws Exception
      Specified by:
      processInvocation in interface org.jboss.invocation.Interceptor
      Throws:
      Exception