[jboss-user] [JBoss AOP] - Re: dynamic cflow double call

flavia.rainone@jboss.com do-not-reply at jboss.com
Wed Aug 22 12:42:12 EDT 2007


You have to scope your .ear files.

In each one of the.ear files, add this to the META-INF/jboss-app.xml file:
<jboss-app>
  | .....
  | <loader-repository>yourApp:loader=yourApp.ear</loader-repository>
  | </jboss-app>

This way, each .ear will be loaded in a separate scope, and the same will apply to the .aop file inside of them.

Alternatively, you can change the "Isolated" attribute value of ear-deployer.xml file instead of adding the loader-repository tag above to each ear (this will scope all ear deployed files of your server).

Notice that isolating each ear in a scope will forbid classes of one ear file to see classes of the other. If this is not what you want, I think that deploying a single .aop file would also work.

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

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



More information about the jboss-user mailing list