Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I pre-compile the aop classes such that I don need to use the system classloader and jboss-aop configuration xml?

0
Posted

Can I pre-compile the aop classes such that I don need to use the system classloader and jboss-aop configuration xml?

0

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).

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123