| Main application that allow two steps preparation of the hook This can be used instead of ProcessStarter to dual
JVM and stream piping
Usage
java [options..] org.codehaus.aspectwerkz.hook.Plug -target <targetJar.jar>
java [options..] org.codehaus.aspectwerkz.hook.Plug -hotswap <jdwp options>
java [options..] org.codehaus.aspectwerkz.hook.Plug -resume <jdwp options>
java [options..] org.codehaus.aspectwerkz.hook.Plug -info <jdwp options>
- -target targetJar.jar to generate a targetJar.jar containing the patched java.lang.ClassLoader suitable for your
current java installation.
Add this jar in -Xbootclasspath/p: options as other AspectWerkz options [see
documentation]
- -hotswap will hotswap the java.lang.ClassLoader in a running or suspended jvm, and will resume the jvm
- -resume will resume the (running or) suspended jvm
- -info will print out JPDA information and resume the (running or) suspended jvm
*
For the last two invocations, [jdwp options] must be the subpart of the -Xrunjdwp option indicating how to connect to
the remote JVM (see sample below or documentation). For now, only localhost connection is supported.
If the JVM was started with -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
Use java [options..] ..Plug -prepare transport=dt_socket,address=8000
Be sure to set AspectWerkz option prior to starting the JVM with -Xrunjdwp options.
author: Alexandre Vasseur |