Adrian Brock wrote: > Hi, > > This would work if there was a way to configure it. > See the FIXME in ModelMBeanInvoker.preRegister
Hi, thank you very much for help. My mistake.
Actually I had programaticaly add LogInterceptor into stack but below ObjectReferenceInterceptor so method invoke was not called.
<bad code>
...
this.stack = new LogInterceptor(); // add LogInterceptor
this.stack = new ObjectReferenceInterceptor(resource,
infoSupport).insertLast(this.stack);
....
</bad code>David
From: David Klimek <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-dev] org.jboss.mx.interceptor: Does it work? Date: Sat, 01 Mar 2003 12:05:38 +0100
Hello,
I have add logging to org.jboss.mx.interceptor.LogInterceptor but it seems that method invoke is never called.
public Object invoke(Invocation invocation) { long begin = System.currentTimeMillis(); try { return getNext().invoke(invocation); } finally { logInvocation(invocation, begin, System.currentTimeMillis()); } }
The interceptor stack with LogInterceptor is created possibly in ModelMBeanInvoker.
Am I missing something or this part of jboss is just not finished. I have done these experiments on JBoss3.2 RC1.
Does it work in HEAD?
Thank's David
-- http://www.sweb.cz/david.klimek
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
_________________________________________________________________ MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
-- http://www.sweb.cz/david.klimek
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
