AspectWerkz 2.0 - Preparing BEA JRockit 7 and 8.1 JVM

The infrared-agent-all-servlet-2.4.1.BETA.jar, infrared-agent-all-weblogic-.jar and infrared-agent-all-jboss-2.4.1.BETA.jar jars that ship with InfraRED all contain a META-INF\aop.xml file that pertains to AspectJ. If you plan to use AspectWerkz instead of AspectJ, please replace this file with the ones provided in props folder. servlet-aop.xml should go into infrared-agent-all-servlet-2.4.1.BETA.jar and ejb-aop.xml should go into infrared-agent-all-weblogic-2.4.1.BETA.jar and infrared-agent-all-jboss-2.4.1.BETA.jar.

> cd %INFRARED_HOME%
> mkdir META-INF
> cd META-INF
> copy props\servlet-aop.xml .
> move servlet-aop.xml aop.xml
> cd ..
> jar -uvf infrared-agent-all-servlet-2.4.1.BETA.jar META-INF\aop.xml
> cd META-INF
> del aop.xml
> copy props\ejb-aop.xml .
> move ejb-aop.xml aop.xml
> cd ..
> jar -uvf infrared-agent-all-weblogic-2.4.1.BETA.jar META-INF\aop.xml
> jar -uvf infrared-agent-all-jboss-2.4.1.BETA.jar META-INF\aop.xml
            

If you are using BEA JRockit JVM versions 7 or 8.1, you need to add the Xmanagement:class=org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor JVM switch, and add the infrared-aspectsystem-all-2.4.1.BETA.jar and infrared-agent-all-weblogic-2.4.1.BETA.jar jars to the server's CLASSPATH. These jars comes bundled with InfraRED distribution.

You need to edit the DOMAIN_HOME\startWeblogic.cmd(sh) or DOMAIN_HOME\startManagedWeblogic.cmd(sh) file to add:

          
@REM Integrate InfraRED with Weblogic running on JRockit
set JAVA_OPTIONS=Xmanagement:class=org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor %JAVA_OPTIONS%
set CLASSPATH=%INFRARED_HOME%\infrared-aspectsystem-all-2.4.1.BETA.jar;%INFRARED_HOME%\infrared-agent-all-weblogic-2.4.1.BETA.jar;%CLASSPATH%        
                

You can add these lines anywhere in the file.