This content has been marked as final.
Show 2 replies
-
1. Re: Using Byteman to test a class within a jar within an ear
adinn Mar 22, 2012 2:30 PM (in response to vojedav)Victor M. Ojeda V. wrote:
In run.sh of JBoss 5.1 I put the following:
set JAVA_OPTS="${JAVA_OPTS} -Dorg.jboss.byteman.transform.all -javaagent:${BYTEMAN_HOME}/lib/byteman.jar=script:${BYTEMAN_HOME}/bin/thread.btm,boot:${BYTEMAN_HOME}/lib/byteman.jar,listener:true"
. . .
How to make this work?
run.sh is a bourne shell script (/bin/sh) so set is not te command you are looking for. try adding this instead
export JAVA_OPTS="${JAVA_OPTS} -Dorg.jboss.byteman.transform.all -javaagent:${BYTEMAN_HOME}/lib/byteman.jar=script:${BYTEMAN_HOME}/bin/thread.btm,boot:${BYTEMAN_HOME}/lib/byteman.jar,listener:true"
-
2. Re: Using Byteman to test a class within a jar within an ear
vojedav Mar 22, 2012 2:37 PM (in response to adinn)Yes. My fault. Thanks Andrew. It works !!!