AspectJ 1.5 - Preparing Sun 1.5 JVM

If you are using Sun 1.5 JVM, you need to add a preMain Java agent to the VM.

  • Tomcat:

    You need to:

    • edit the TOMCAT_HOME\bin\setclasspath.bat(sh) to add:

      @REM Integrate InfraRED with Tomcat running on Sun 1.5 JVM
      set JAVA_OPTS=-javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar %JAVA_OPTS%
                                      

      You can add these lines anywhere in the file.

    • copy the file INFRARED_HOME\infrared-aspectsystem-all-2.4.1.BETA.jar into TOMCAT_HOME\common\endorsed directory.
    • copy the infrared-agent-all-servlet-2.4.1.BETA.jar into TOMCAT_HOME\common\lib directory.
  • JBoss:

    You need to:

    • edit the JBOSS_HOME\run.bat(sh) to add:

      @REM Integrate InfraRED with JBoss running on Sun 1.5 JVM
      set JAVA_OPTS=-javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar %JAVA_OPTS%                                            
                                      

      You can add these lines anywhere in the file before the command to launch the VM.

    • copy the file INFRARED_HOME\infrared-aspectsystem-all-2.4.1.BETA.jar into JBOSS_HOME\lib\endorsed directory.
    • copy the file INFRARED_HOME\infrared-agent-all-jboss-2.4.1.BETA.jar into JBOSS_HOME\server\default\lib directory.