org.apache.openejb.test.mdb
Class InterceptorMdbBean

java.lang.Object
  extended by org.apache.openejb.test.mdb.InterceptorMdbBean
All Implemented Interfaces:
Serializable, javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener

public class InterceptorMdbBean
extends Object
implements javax.jms.MessageListener, javax.ejb.MessageDrivenBean

See Also:
Serialized Form

Field Summary
protected static boolean classLevelCreateMethodInterception
           
protected  MdbInvoker mdbInvoker
           
 
Constructor Summary
InterceptorMdbBean()
           
 
Method Summary
 void checkClassLevelBusinessMethodInterception()
           
 void checkClassLevelCreateMethodInterception()
           
 void checkMethodLevelBusinessMethodInterception()
           
 void checkMethodLevelCreateMethodInterception()
           
 void ejbCreate()
           
 void ejbRemove()
           
 Object mdbInterceptor(javax.interceptor.InvocationContext ctx)
           
 void onMessage(javax.jms.Message msg)
           
 void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLevelCreateMethodInterception

protected static boolean classLevelCreateMethodInterception

mdbInvoker

protected MdbInvoker mdbInvoker
Constructor Detail

InterceptorMdbBean

public InterceptorMdbBean()
Method Detail

onMessage

public void onMessage(javax.jms.Message msg)
Specified by:
onMessage in interface javax.jms.MessageListener

mdbInterceptor

public Object mdbInterceptor(javax.interceptor.InvocationContext ctx)
                      throws Exception
Throws:
Exception

ejbCreate

@PostConstruct
public void ejbCreate()
               throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

checkMethodLevelBusinessMethodInterception

public void checkMethodLevelBusinessMethodInterception()
                                                throws TestFailureException
Throws:
TestFailureException

checkMethodLevelCreateMethodInterception

public void checkMethodLevelCreateMethodInterception()
                                              throws TestFailureException
Throws:
TestFailureException

checkClassLevelBusinessMethodInterception

public void checkClassLevelBusinessMethodInterception()
                                               throws TestFailureException
Throws:
TestFailureException

checkClassLevelCreateMethodInterception

public void checkClassLevelCreateMethodInterception()
                                             throws TestFailureException
Throws:
TestFailureException

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException
Specified by:
ejbRemove in interface javax.ejb.MessageDrivenBean
Throws:
javax.ejb.EJBException

setMessageDrivenContext

public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
                             throws javax.ejb.EJBException
Specified by:
setMessageDrivenContext in interface javax.ejb.MessageDrivenBean
Throws:
javax.ejb.EJBException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.