Difference between revisions of "EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Dynamic Weaving"

From Eclipsepedia

Jump to: navigation, search
m (Dynamic Weaving)
m (Dynamic Weaving)
Line 4: Line 4:
 
Use this option to weave applicable class files one at a time, as they are loaded at run time. Consider this option when the number of classes to weave is few or the time taken to weave the classes is short.
 
Use this option to weave applicable class files one at a time, as they are loaded at run time. Consider this option when the number of classes to weave is few or the time taken to weave the classes is short.
  
If the number of classes to weave is large or the time required to weave the classes is long, consider using static weaving. For more information, see [[#How to Configure Static Weaving for JPA Entities|How to Configure Static Weaving for JPA Entities]].
+
If the number of classes to weave is large or the time required to weave the classes is long, consider using [[Editing EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Static Weaving|static weaving]].
  
  
Line 11: Line 11:
 
<ol>
 
<ol>
 
<li> Modify your application JVM command line to include the following:
 
<li> Modify your application JVM command line to include the following:
<div class="pre">
+
<br />
-javaagent:eclipselink.jar
+
<tt>-javaagent:eclipselink.jar</tt>
</div></li><li> Ensure that the <tt>eclipselink.jar</tt> is in your application classpath.
+
</li><li> Ensure that the <tt>eclipselink.jar</tt> is in your application classpath.
 
<li> Package and deploy your application.<br>For more information, see [[Packaging%20and%20Deploying%20EclipseLink%20JPA%20Applications%20(ELUG)#Packaging an EclipseLink JPA Application|Packaging an EclipseLink JPA Application]].
 
<li> Package and deploy your application.<br>For more information, see [[Packaging%20and%20Deploying%20EclipseLink%20JPA%20Applications%20(ELUG)#Packaging an EclipseLink JPA Application|Packaging an EclipseLink JPA Application]].
 
</li>
 
</li>

Revision as of 13:55, 16 June 2010

Dynamic Weaving

Use this option to weave applicable class files one at a time, as they are loaded at run time.

Use this option to weave applicable class files one at a time, as they are loaded at run time. Consider this option when the number of classes to weave is few or the time taken to weave the classes is short.

If the number of classes to weave is large or the time required to weave the classes is long, consider using static weaving.


To Configure Dynamic Weaving for JPA Entities Using the EclipseLink Agent

  1. Modify your application JVM command line to include the following:
    -javaagent:eclipselink.jar
  2. Ensure that the eclipselink.jar is in your application classpath.
  3. Package and deploy your application.
    For more information, see Packaging an EclipseLink JPA Application.

EclipseLink weaves applicable class files one at a time, as they are loaded at run time.


Eclipselink-logo.gif
Version: DRAFT
Other versions...