[jboss-user] [JBoss AOP] - Re: AOP Logging Tutorial

stale.pedersen@jboss.org do-not-reply at jboss.com
Thu Feb 26 05:37:10 EST 2009

hi, we dont have any logging tutorial afaik, but the examples thats included in the distro should give you a nice idea on how it can be done.
eg take a look at JBOSS_DISTRO/docs/aspect-framework/examples/method-execution. its a simple example that show how you intercept a method. the same idea applies to logging. if you want to to change the logging of aop take a look at JBOSS_DISTRO/docs/aspect-framework/examples/logging.

regarding testing it is kinda difficult to understand what you mean, but a nice intro for using aop with tests can be found here: http://www.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/userguide/en/html/testing.html in section 8.2. - its a bit outdated, but it will give you an idea of what can be done.

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

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

More information about the jboss-user mailing list