Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

m
m
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{EclipseLink_UserGuide}}
+
{{EclipseLink_UserGuide
=Dynamic Weaving=
+
|info=y
Use this option to weave applicable class files one at a time, as they are loaded at run time.
+
|toc=n
 +
|eclipselink=y
 +
|eclipselinktype=JPA}}
  
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.
+
=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 [[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 15: Line 19:
 
<tt>-javaagent:eclipselink.jar</tt>
 
<tt>-javaagent:eclipselink.jar</tt>
 
</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.
 
</li>
 
</li>
 
</ol>
 
</ol>
Line 23: 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.1.0}}
+
|version=2.2.0 DRAFT}}

Revision as of 09:21, 9 May 2011

EclipseLink JPA

Eclipselink-logo.gif
EclipseLink
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug 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...

Back to the top