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