updated reference documentation with references to "spring-agent.jar" to use "org.springframework.instrument-{version}.jar" (SPR-6597)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2848 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
5f4a938bff
commit
edfbe3dd8c
|
|
@ -3115,8 +3115,8 @@ public class Account {
|
||||||
<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
|
||||||
<literal>-javaagent:path/to/aspectjweaver.jar</literal> or (as we describe later in this
|
<literal>-javaagent:path/to/aspectjweaver.jar</literal> or (as we describe later in this
|
||||||
section) <literal>-javaagent:path/to/spring-instrument.jar</literal> (previously named
|
section) <literal>-javaagent:path/to/org.springframework.instrument-{version}.jar</literal>
|
||||||
<literal>spring-agent.jar</literal>). Developers simply modify
|
(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>
|
||||||
|
|
|
||||||
|
|
@ -1631,7 +1631,8 @@ TR: REVISED, PLS REVIEW. Should be *inside your war*.--></para>
|
||||||
a JDK agent can be the only solution. For such cases, Spring
|
a JDK agent can be the only solution. For such cases, Spring
|
||||||
provides <classname>InstrumentationLoadTimeWeaver,</classname> which
|
provides <classname>InstrumentationLoadTimeWeaver,</classname> which
|
||||||
requires a Spring-specific (but very general) VM agent, <filename
|
requires a Spring-specific (but very general) VM agent, <filename
|
||||||
class="libraryfile">spring-agent.jar</filename>:</para>
|
class="libraryfile">org.springframework.instrument-{version}.jar</filename> (previously named <filename
|
||||||
|
class="libraryfile">spring-agent.jar</filename>):</para>
|
||||||
|
|
||||||
<programlisting language="xml"><bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
<programlisting language="xml"><bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||||
<property name="loadTimeWeaver">
|
<property name="loadTimeWeaver">
|
||||||
|
|
@ -1642,15 +1643,16 @@ TR: REVISED, PLS REVIEW. Should be *inside your war*.--></para>
|
||||||
<para>You must start the virtual machine with the Spring agent, by
|
<para>You must start the virtual machine with the Spring agent, by
|
||||||
supplying the following JVM options:</para>
|
supplying the following JVM options:</para>
|
||||||
|
|
||||||
<programlisting>-javaagent:/path/to/spring-agent.jar</programlisting>
|
<programlisting>-javaagent:/path/to/org.springframework.instrument-{version}.jar</programlisting>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="orm-jpa-setup-lcemfb-weaver">
|
<section id="orm-jpa-setup-lcemfb-weaver">
|
||||||
<title>Context-wide load-time weaver setup</title>
|
<title>Context-wide load-time weaver setup</title>
|
||||||
|
|
||||||
<para>In Spring 2.5 and later, you can configure a context-wide
|
<para>You can configure a context-wide
|
||||||
<interfacename>LoadTimeWeaver</interfacename> using the
|
<interfacename>LoadTimeWeaver</interfacename> using the
|
||||||
<literal>context:load-time-weaver</literal> configuration element.
|
<literal>context:load-time-weaver</literal> configuration element. (This
|
||||||
|
has been available since Spring 2.5.)
|
||||||
Such a global weaver is picked up by all JPA
|
Such a global weaver is picked up by all JPA
|
||||||
<classname>LocalContainerEntityManagerFactoryBeans</classname>
|
<classname>LocalContainerEntityManagerFactoryBeans</classname>
|
||||||
automatically.</para>
|
automatically.</para>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue