[jboss-user] [JBoss AOP] - Re: Tracing/Logging - Actual RMI calls vs calls between EJBs

stalep do-not-reply at jboss.com
Tue Dec 12 03:03:46 EST 2006


"ykrishnaprasad" wrote : 
  | a) Can get the type of an invocation(whether its a METHOD)?
  | 
i guess you mean in the interceptor, so yes. just either try to cast it to a MethodInvocation or check if its an instanceof MethodInvocation.
"ykrishnaprasad" wrote : 
  | b) Can i use org.jboss.aop.joinpoint.MethodCalledByMethodInvocation to see if a method is invoked by another method?
  | 
i believe you are thinking of cflow here. with cflow you can define a stack of eg. method calls that has to occur before a pointcut matches.
take a look at the cflow examples in the dist and let me know if it solves your problem.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992980#3992980

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992980



More information about the jboss-user mailing list