[jboss-user] [JBoss AOP] - Re: How does this work?

kabir.khan@jboss.com do-not-reply at jboss.com
Wed May 14 16:22:41 EDT 2008


JBoss AOP is a 2-step process. The info from your jboss-aop.xml file needs to be available BOTH at weaving time AND at runtime.

At run-time you would use the -Djboss.aop.path system property for a standalone application. In JBoss AS a special deployer will pick up the jboss-aop.xml files and make them available.

We don't support Tomcat out of the box, but need to call the AspectXmlLoader.deployXml(URL url) method, where url is the url of the -aop.xml you want to deploy. You should be able to do this from a startup servlet or something like that. 

Please let us know how you get on, since if this gets documented it should be very useful for a lot of people :-)

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

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



More information about the jboss-user mailing list