+ renamed spring-agent.jar to org.springframework.instrument.jar through-out the documentation.
This commit is contained in:
Costin Leau 2009-11-30 13:18:16 +00:00
parent b7e37ddb07
commit 7a1c4d23b4
1 changed files with 14 additions and 9 deletions

View File

@ -3114,8 +3114,9 @@ public class Account {
environments</link>, this support enables load-time weaving environments</link>, this support enables load-time weaving
<emphasis>without making any modifications to the application server's <emphasis>without making any modifications to the application server's
launch script</emphasis> that will be needed to add launch script</emphasis> that will be needed to add
-javaagent:path/to/aspectjweaver.jar or (as we describe later in this <literal>-javaagent:path/to/aspectjweaver.jar</literal> or (as we describe later in this
section) -javaagent:path/to/spring-agent.jar. Developers simply modify section) <literal>-javaagent:path/to/org.springframework.instrument.jar</literal> (previously named
<literal>spring-agent.jar</literal>). Developers simply modify
one or more files that form the application context to enable load-time one or more files that form the application context to enable load-time
weaving instead of relying on administrators who typically are in charge weaving instead of relying on administrators who typically are in charge
of the deployment configuration such as the launch script.</para> of the deployment configuration such as the launch script.</para>
@ -3257,7 +3258,7 @@ public final class Main {
(supplied with Spring) to switch on the LTW. This is the command line (supplied with Spring) to switch on the LTW. This is the command line
we will use to run the above <classname>Main</classname> class:</para> we will use to run the above <classname>Main</classname> class:</para>
<programlisting>java -javaagent:C:/projects/foo/lib/global/spring-agent.jar foo.Main</programlisting> <programlisting>java -javaagent:C:/projects/foo/lib/global/org.springframework.instrument.jar foo.Main</programlisting>
<para>The '<literal>-javaagent</literal>' is a Java 5+ flag for <para>The '<literal>-javaagent</literal>' is a Java 5+ flag for
specifying and enabling <ulink specifying and enabling <ulink
@ -3265,7 +3266,8 @@ public final class Main {
to instrument programs running on the JVM</ulink>. The Spring to instrument programs running on the JVM</ulink>. The Spring
Framework ships with such an agent, the Framework ships with such an agent, the
<classname>InstrumentationSavingAgent</classname>, which is packaged <classname>InstrumentationSavingAgent</classname>, which is packaged
in the <filename class="libraryfile">spring-agent.jar</filename> that in the <filename class="libraryfile">org.springframework.instrument.jar</filename> (previously
named <filename class="libraryfile">spring-agent.jar</filename>) that
was supplied as the value of the <literal>-javaagent</literal> was supplied as the value of the <literal>-javaagent</literal>
argument in the above example.</para> argument in the above example.</para>
@ -3388,7 +3390,8 @@ public final class Main {
<orderedlist> <orderedlist>
<listitem> <listitem>
<para><filename <para><filename
class="libraryfile">spring-agent.jar</filename></para> class="libraryfile">org.springframework.instrument.jar</filename> (previously named
<filename class="libraryfile">spring-agent.jar</filename>)</para>
</listitem> </listitem>
</orderedlist> </orderedlist>
</section> </section>
@ -3506,7 +3509,7 @@ http://www.springframework.org/schema/context
<entry><para>JVM started with Spring <entry><para>JVM started with Spring
<classname>InstrumentationSavingAgent</classname></para> <classname>InstrumentationSavingAgent</classname></para>
<para><emphasis><literal>(java <para><emphasis><literal>(java
-javaagent:path/to/spring-agent.jar)</literal></emphasis></para></entry> -javaagent:path/to/org.springframework.instrument.jar)</literal></emphasis></para></entry>
<entry><para><classname>InstrumentationLoadTimeWeaver</classname></para></entry> <entry><para><classname>InstrumentationLoadTimeWeaver</classname></para></entry>
</row> </row>
@ -3620,7 +3623,8 @@ http://www.springframework.org/schema/context
(standalone as well as application server based) through the use of (standalone as well as application server based) through the use of
the Spring-provided instrumentation agent. To do so, start the Spring-provided instrumentation agent. To do so, start
the VM by by specifying the the VM by by specifying the
<literal>-javaagent:path/to/spring-agent.jar</literal> option. <literal>-javaagent:path/to/org.springframework.instrument.jar</literal> option
(the jar was previously named <literal>spring-agent.jar</literal>).
Note that this requires modification of the VM launch script Note that this requires modification of the VM launch script
which may prevent you from using this in application server which may prevent you from using this in application server
environments (depending on your operation policies).</para> environments (depending on your operation policies).</para>
@ -3635,7 +3639,8 @@ http://www.springframework.org/schema/context
looks as follows, to be included either in Tomcat's central looks as follows, to be included either in Tomcat's central
<literal>server.xml</literal> file or in an application-specific <literal>server.xml</literal> file or in an application-specific
<literal>META-INF/context.xml</literal> file within the WAR root. <literal>META-INF/context.xml</literal> file within the WAR root.
Spring's <literal>spring-tomcat-weaver.jar</literal> needs to be Spring's <literal>org.springframework.instrument.tomcat.jar</literal>
(previously named <literal>spring-tomcat-weaver.jar</literal>) needs to be
included in Tomcat's common lib directory in order to make this included in Tomcat's common lib directory in order to make this
setup work.</para> setup work.</para>
@ -3672,7 +3677,7 @@ http://www.springframework.org/schema/context
You can enable LTW by simply activating <literal>context:load-time-weaver</literal> You can enable LTW by simply activating <literal>context:load-time-weaver</literal>
as described earlier. Specifically, you do <emphasis>not</emphasis> as described earlier. Specifically, you do <emphasis>not</emphasis>
need to modify the launch script to add need to modify the launch script to add
<literal>-javaagent:path/to/spring-agent.jar</literal>.</para> <literal>-javaagent:path/to/org.springframework.instrument.jar</literal>.</para>
<para>GlassFish provides an instrumentation-capable ClassLoader as well, <para>GlassFish provides an instrumentation-capable ClassLoader as well,
but only in its EAR environment. For GlassFish web applications, but only in its EAR environment. For GlassFish web applications,