Application Server: JBOss 4.2
I have a method which I want to intercept.Its a method annotated @Timeout and invoked by javax.ejb.TimerService instance.
The method signature:
@Stateless
class A
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
@Timeout
@Interceptors(AnInterceptor.class)
public void doSomething(Timer timer)...
Now I have the interceptor class:
public class AnInterceptor {
@AroundInvoke
public Object intercept(InvocationContext ic) throws Exception{...
System.out.prin(...)
It does work on other method methods (which are not annotated with @Timeout)
Thanks, Rod