[jboss-user] [JBoss AOP] - Re: How do you use EnableLoadtimeWeaving for a Windows Servi

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Nov 27 13:54:32 EST 2006


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#3988994

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988994



More information about the jboss-user mailing list