I have a standalone application that supports hot deployment of simple services which are contained within their own .jar files. Each of these service .jars is allocated their own classloader, which is responsible for loading the classes, resources etc from that one file. What I would like to do is support the ability to define aspects within each service jar that can bind to pointcuts in classes either within the same service jar or in the host application itself.
Some additional info - I'm developing with JDK 1.5.0 and JBoss AOP 1.3, and defining my aspects using annotations. I'm running JBoss AOP using the -javaagent method, with the -hotSwap parameter.
I've read chapters 6 and 10 from the reference documentation, but couldn't find anything dealing with my particular scenario. Is it possible to achieve what I've described? Not knowing any better, I've attempted loading the aspects using org.jboss.aop.AspectAnnotationLoader. While this seems to get my aspects registered with the AspectManager, there is still the question of how to instrument my classes when they're loaded with a custom classloader. Any guidance on how I should go about this is greatly appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883007#3883007
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883007
|