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

From Eclipsepedia

Jump to: navigation, search
m (Dynamic Weaving)
m
Line 1: Line 1:
 +
{EclipseLink_UserGuide}}
 
=Dynamic Weaving=
 
=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.  
Line 4: Line 5:
 
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 [[Editing EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Static Weaving|static weaving]].
+
If the number of classes to weave is large or the time required to weave the classes is long, consider using [[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static Weaving|static weaving]].
  
  
Line 25: Line 26:
 
|next    =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static Weaving|Static Weaving]]
 
|next    =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static Weaving|Static Weaving]]
 
|up      =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/About Weaving|About Weaving]]
 
|up      =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/About Weaving|About Weaving]]
}}
+
|version =2.1.0}}

Revision as of 23:20, 18 June 2010

{EclipseLink_UserGuide}}

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: 2.1.0
Other versions...