|
November 2003
[
avasseur
]
10:26, Wednesday, 12 November 2003
The latest snapshot of AspectWerkz is now supporting JRockit JVM for on the fly weaving. By using JRockit JMAPI capabilities, AspectWerkz brings AOP one step ahead by officially supporting all major JVM (Sun, IBM, BEA). This allows to hook AspectWerkz in a seamless way to provide dynamic on the fly weaving of Aspects no matter your environment. JRockit could not be supported before due to lack of HotSwap support and a limitation that forbids overriding of java.lang.ClassLoader with a -Xbootclasspath option. Users had to use offline mode until there. The extension will be core part of coming 0.9 AspectWerkz release, so that all VM are supported with the smallest integration cost (Sun, IBM, JRockit). Tests have been made with
The JMAPI JRockit API (management API) allows to add a classPreProcessor mechanism using a java snip or a command line option. It is possible to hook or unhook AspectWerkz programmatically using JMAPI:
JVMFactory.getJVM().getClassLibrary().setClassPreProcessor(
new JRockitPreProcessor());
To launch a JVM with AspectWerkz hooked in for class load time weaving this consists of a single option: /jrockit/bin/java -Xmanagement:class=org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor .... If you are a JRockit fan, please help us and give a try to AspectWerkz online mode by your own. We need your feedback to make it suits your needs. We will provide extensive documentation with the 0.9 release, but for the impatient :
|