Can I pre-compile the aop classes such that I don need to use the system classloader and jboss-aop configuration xml?
Yes. The latest versions of JBossCache have a pre-compiler option called aopc. You can use this option to pre-compile your “aspectized” POJO. Once the classes have been byte code generated, they can be treated as regular class files, i.e., you will not need to include any jboss-aop.xml that specifies the advisable POJO and to specify the JBossAop system class loader. For an example of how to use aopc, please see the build.xml in the standalone package (look for the aopc Ant target).
Yes. The latest versions of JBossCache have a pre-compiler option called aopc. You can use this option to pre-compile your “aspectized” POJO. Once the classes have been byte code generated, they can be treated as regular class files, i.e., you will not need to include any jboss-aop.xml that specifies the advisable POJO and to specify the JBossAop system class loader. For an example of how to use aopc, please see 1) tools directory for PojoCacheTasks14.xml and PojoCacheTasks50.xml. Both contain Ant tasks that you can import to your regular project for annoc and aopc. In addition, please also check out the examples directory for concrete examples.