Hi!
In theory, you can apply JBoss AOP interceptors to any Java program. I think you will have
to do a small test to see if there are any framework incompatibilities here (but I'm
hoping not).
However, I notice that you mentioned a running business proccess at Tomcat. If you are
talking about applying dynamic AOP (i.e., add aspects and interceptors at runtime), you
are going to need to prepare the code for this.
You don't need the source code of the bpm to do so, however. You just have to proccess
the BPEL engine classes with aopc before running, or enable loadtime weaving through a
java agent at the java command line.
Only code that has been prepared for AOP can be instrumented at runtime. Once your system
is correctly prepared, you can add an interceptor at runtime.
As a start, take a look at the Dynamic AOP chapter of our Reference Guide:
http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/referen...
The prepare XML tag is documented here:
http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/referen...
And the @Prepare annotation is also available:
http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/referen...
There is also an implemented example at our tutorial:
http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/example...
Let me know if this solves your question.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148443#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...