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

From Eclipsepedia

Jump to: navigation, search
m
m
(2 intermediate revisions by one user not shown)
Line 5: Line 5:
 
|eclipselinktype=JPA}}
 
|eclipselinktype=JPA}}
  
=Dynamic Weaving=
+
=Configuring Dynamic Weaving=
  
 
Use dynamic weaving 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 when the time taken to weave the classes is short.
 
Use dynamic weaving 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 when the time taken to weave the classes is short.
Line 27: Line 27:
  
 
{{EclipseLink_JPA
 
{{EclipseLink_JPA
|previous=[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/About Weaving/Weaving and Java EE Application Servers|Weaving and Java EE Application Servers]]
+
|previous=[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving|Weaving]]
|next    =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static Weaving|Static Weaving]]
+
|next    =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static Weaving|Configuring Static Weaving]]
|up      =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/About Weaving|About Weaving]]
+
|up      =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving|Weaving]]
 
|version=2.2.0 DRAFT}}
 
|version=2.2.0 DRAFT}}

Revision as of 09:21, 9 May 2011

EclipseLink JPA

link="http://wiki.eclipse.org/EclipseLink"
EclipseLink
Website
Download
Community
Mailing ListForumsIRC
Bugzilla
Open
Help Wanted
Bug Day
Contribute
Browse Source


Configuring Dynamic Weaving

Use dynamic weaving 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 when 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.

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


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