First of all make sure that you can get the "injboss" tutorial example running,
so that you know how to set up loadtime weaving for an instance you manage yourself.
The jar to use for the -javaagent when running with jboss is pluggable-instrumentor.jar
not jboss-aop-jdk50.jar
:
| set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
-javaagent:C:\myjboss\bin\pluggable-instrumentor.jar
|
I am not sure what JBoss IDE or jbosservice use run.bat or if they invoke the jboss Main
class themselves. So if modifying the run.bat does not work for you, try to set the
-javaagent switch when creating your service:
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988994#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...