@@ -3114,8 +3114,9 @@ public class Account {
3114
3114
environments</link >, this support enables load-time weaving
3115
3115
<emphasis >without making any modifications to the application server's
3116
3116
launch script</emphasis > that will be needed to add
3117
- -javaagent:path/to/aspectjweaver.jar or (as we describe later in this
3118
- section) -javaagent:path/to/spring-agent.jar. Developers simply modify
3117
+ <literal >-javaagent:path/to/aspectjweaver.jar</literal > or (as we describe later in this
3118
+ section) <literal >-javaagent:path/to/org.springframework.instrument.jar</literal > (previously named
3119
+ <literal >spring-agent.jar</literal >). Developers simply modify
3119
3120
one or more files that form the application context to enable load-time
3120
3121
weaving instead of relying on administrators who typically are in charge
3121
3122
of the deployment configuration such as the launch script.</para >
@@ -3257,15 +3258,16 @@ public final class Main {
3257
3258
(supplied with Spring) to switch on the LTW. This is the command line
3258
3259
we will use to run the above <classname >Main</classname > class:</para >
3259
3260
3260
- <programlisting >java -javaagent:C:/projects/foo/lib/global/spring-agent .jar foo.Main</programlisting >
3261
+ <programlisting >java -javaagent:C:/projects/foo/lib/global/org.springframework.instrument .jar foo.Main</programlisting >
3261
3262
3262
3263
<para >The '<literal >-javaagent</literal >' is a Java 5+ flag for
3263
3264
specifying and enabling <ulink
3264
3265
url =" http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/package-summary.html" >agents
3265
3266
to instrument programs running on the JVM</ulink >. The Spring
3266
3267
Framework ships with such an agent, the
3267
3268
<classname >InstrumentationSavingAgent</classname >, which is packaged
3268
- in the <filename class =" libraryfile" >spring-agent.jar</filename > that
3269
+ in the <filename class =" libraryfile" >org.springframework.instrument.jar</filename > (previously
3270
+ named <filename class =" libraryfile" >spring-agent.jar</filename >) that
3269
3271
was supplied as the value of the <literal >-javaagent</literal >
3270
3272
argument in the above example.</para >
3271
3273
@@ -3388,7 +3390,8 @@ public final class Main {
3388
3390
<orderedlist >
3389
3391
<listitem >
3390
3392
<para ><filename
3391
- class =" libraryfile" >spring-agent.jar</filename ></para >
3393
+ class =" libraryfile" >org.springframework.instrument.jar</filename > (previously named
3394
+ <filename class =" libraryfile" >spring-agent.jar</filename >)</para >
3392
3395
</listitem >
3393
3396
</orderedlist >
3394
3397
</section >
@@ -3506,7 +3509,7 @@ http://www.springframework.org/schema/context
3506
3509
<entry ><para >JVM started with Spring
3507
3510
<classname >InstrumentationSavingAgent</classname ></para >
3508
3511
<para ><emphasis ><literal >(java
3509
- -javaagent:path/to/spring-agent .jar)</literal ></emphasis ></para ></entry >
3512
+ -javaagent:path/to/org.springframework.instrument .jar)</literal ></emphasis ></para ></entry >
3510
3513
<entry ><para ><classname >InstrumentationLoadTimeWeaver</classname ></para ></entry >
3511
3514
</row >
3512
3515
@@ -3620,7 +3623,8 @@ http://www.springframework.org/schema/context
3620
3623
(standalone as well as application server based) through the use of
3621
3624
the Spring-provided instrumentation agent. To do so, start
3622
3625
the VM by by specifying the
3623
- <literal >-javaagent:path/to/spring-agent.jar</literal > option.
3626
+ <literal >-javaagent:path/to/org.springframework.instrument.jar</literal > option
3627
+ (the jar was previously named <literal >spring-agent.jar</literal >).
3624
3628
Note that this requires modification of the VM launch script
3625
3629
which may prevent you from using this in application server
3626
3630
environments (depending on your operation policies).</para >
@@ -3635,7 +3639,8 @@ http://www.springframework.org/schema/context
3635
3639
looks as follows, to be included either in Tomcat's central
3636
3640
<literal >server.xml</literal > file or in an application-specific
3637
3641
<literal >META-INF/context.xml</literal > file within the WAR root.
3638
- Spring's <literal >spring-tomcat-weaver.jar</literal > needs to be
3642
+ Spring's <literal >org.springframework.instrument.tomcat.jar</literal >
3643
+ (previously named <literal >spring-tomcat-weaver.jar</literal >) needs to be
3639
3644
included in Tomcat's common lib directory in order to make this
3640
3645
setup work.</para >
3641
3646
@@ -3672,7 +3677,7 @@ http://www.springframework.org/schema/context
3672
3677
You can enable LTW by simply activating <literal >context:load-time-weaver</literal >
3673
3678
as described earlier. Specifically, you do <emphasis >not</emphasis >
3674
3679
need to modify the launch script to add
3675
- <literal >-javaagent:path/to/spring-agent .jar</literal >.</para >
3680
+ <literal >-javaagent:path/to/org.springframework.instrument .jar</literal >.</para >
3676
3681
3677
3682
<para >GlassFish provides an instrumentation-capable ClassLoader as well,
3678
3683
but only in its EAR environment. For GlassFish web applications,
0 commit comments