public class InterceptorMdbBean extends Object implements javax.jms.MessageListener, javax.ejb.MessageDrivenBean
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
classLevelCreateMethodInterception |
protected MdbInvoker |
mdbInvoker |
| Constructor and Description |
|---|
InterceptorMdbBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
aroundInvoke(javax.interceptor.InvocationContext ctx) |
void |
checkClassLevelBusinessMethodInterception() |
void |
checkClassLevelCreateMethodInterception() |
void |
checkMethodLevelBusinessMethodInterception() |
void |
checkMethodLevelCreateMethodInterception() |
void |
ejbCreate() |
void |
ejbRemove() |
void |
onMessage(javax.jms.Message msg) |
void |
setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx) |
protected static boolean classLevelCreateMethodInterception
protected MdbInvoker mdbInvoker
public void onMessage(javax.jms.Message msg)
onMessage in interface javax.jms.MessageListenerpublic Object aroundInvoke(javax.interceptor.InvocationContext ctx) throws Exception
Exception@PostConstruct public void ejbCreate() throws javax.ejb.EJBException
javax.ejb.EJBExceptionpublic void checkMethodLevelBusinessMethodInterception()
throws TestFailureException
TestFailureExceptionpublic void checkMethodLevelCreateMethodInterception()
throws TestFailureException
TestFailureExceptionpublic void checkClassLevelBusinessMethodInterception()
throws TestFailureException
TestFailureExceptionpublic void checkClassLevelCreateMethodInterception()
throws TestFailureException
TestFailureExceptionpublic void ejbRemove()
throws javax.ejb.EJBException
ejbRemove in interface javax.ejb.MessageDrivenBeanjavax.ejb.EJBExceptionpublic void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
throws javax.ejb.EJBException
setMessageDrivenContext in interface javax.ejb.MessageDrivenBeanjavax.ejb.EJBExceptionCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.