From 7a1c4d23b4bdac16ca3b8c85a2036ba595a989e9 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Mon, 30 Nov 2009 13:18:16 +0000 Subject: [PATCH] SPR-6469 + renamed spring-agent.jar to org.springframework.instrument.jar through-out the documentation. --- spring-framework-reference/src/aop.xml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/spring-framework-reference/src/aop.xml b/spring-framework-reference/src/aop.xml index 5b4f5ef5a9d..7dcace3496a 100644 --- a/spring-framework-reference/src/aop.xml +++ b/spring-framework-reference/src/aop.xml @@ -3114,8 +3114,9 @@ public class Account { environments, this support enables load-time weaving without making any modifications to the application server's launch script that will be needed to add - -javaagent:path/to/aspectjweaver.jar or (as we describe later in this - section) -javaagent:path/to/spring-agent.jar. Developers simply modify + -javaagent:path/to/aspectjweaver.jar or (as we describe later in this + section) -javaagent:path/to/org.springframework.instrument.jar (previously named + spring-agent.jar). Developers simply modify one or more files that form the application context to enable load-time weaving instead of relying on administrators who typically are in charge of the deployment configuration such as the launch script. @@ -3257,7 +3258,7 @@ public final class Main { (supplied with Spring) to switch on the LTW. This is the command line we will use to run the above Main class: - java -javaagent:C:/projects/foo/lib/global/spring-agent.jar foo.Main + java -javaagent:C:/projects/foo/lib/global/org.springframework.instrument.jar foo.Main The '-javaagent' is a Java 5+ flag for specifying and enabling . The Spring Framework ships with such an agent, the InstrumentationSavingAgent, which is packaged - in the spring-agent.jar that + in the org.springframework.instrument.jar (previously + named spring-agent.jar) that was supplied as the value of the -javaagent argument in the above example. @@ -3388,7 +3390,8 @@ public final class Main { spring-agent.jar + class="libraryfile">org.springframework.instrument.jar (previously named + spring-agent.jar) @@ -3506,7 +3509,7 @@ http://www.springframework.org/schema/context JVM started with Spring InstrumentationSavingAgent (java - -javaagent:path/to/spring-agent.jar) + -javaagent:path/to/org.springframework.instrument.jar) InstrumentationLoadTimeWeaver @@ -3620,7 +3623,8 @@ http://www.springframework.org/schema/context (standalone as well as application server based) through the use of the Spring-provided instrumentation agent. To do so, start the VM by by specifying the - -javaagent:path/to/spring-agent.jar option. + -javaagent:path/to/org.springframework.instrument.jar option + (the jar was previously named spring-agent.jar). Note that this requires modification of the VM launch script which may prevent you from using this in application server environments (depending on your operation policies). @@ -3635,7 +3639,8 @@ http://www.springframework.org/schema/context looks as follows, to be included either in Tomcat's central server.xml file or in an application-specific META-INF/context.xml file within the WAR root. - Spring's spring-tomcat-weaver.jar needs to be + Spring's org.springframework.instrument.tomcat.jar + (previously named spring-tomcat-weaver.jar) needs to be included in Tomcat's common lib directory in order to make this setup work. @@ -3672,7 +3677,7 @@ http://www.springframework.org/schema/context You can enable LTW by simply activating context:load-time-weaver as described earlier. Specifically, you do not need to modify the launch script to add - -javaagent:path/to/spring-agent.jar. + -javaagent:path/to/org.springframework.instrument.jar. GlassFish provides an instrumentation-capable ClassLoader as well, but only in its EAR environment. For GlassFish web applications,