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.
Difference between revisions of "EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Dynamic Weaving"
m |
m |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | ---- | ||
+ | |||
+ | |||
+ | '''[[Image:Elug_draft_icon.png|Warning]] This page is now obsolete. ''' | ||
+ | |||
+ | For current information, please see "Using Weaving" in the ''EclipseLink Solutions Guide'': | ||
+ | http://www.eclipse.org/eclipselink/documentation/latest/solutions/testingjpa004.htm#CHDEECDB | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
{{EclipseLink_UserGuide | {{EclipseLink_UserGuide | ||
|info=y | |info=y | ||
Line 5: | Line 17: | ||
|eclipselinktype=JPA}} | |eclipselinktype=JPA}} | ||
− | =Dynamic Weaving= | + | =Configuring Dynamic Weaving= |
− | + | ||
− | Use | + | 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 28: | Line 39: | ||
{{EclipseLink_JPA | {{EclipseLink_JPA | ||
− | |previous=[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving | + | |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/ | + | |up =[[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving|Weaving]] |
|version=2.2.0 DRAFT}} | |version=2.2.0 DRAFT}} |
Latest revision as of 07:48, 17 April 2013
For current information, please see "Using Weaving" in the EclipseLink Solutions Guide: http://www.eclipse.org/eclipselink/documentation/latest/solutions/testingjpa004.htm#CHDEECDB
EclipseLink JPA
EclipseLink | |
Website | |
Download | |
Community | |
Mailing List • Forums • IRC • mattermost | |
Issues | |
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
- Modify your application JVM command line to include the following:
-javaagent:eclipselink.jar - Ensure that the eclipselink.jar is in your application classpath.
- Package and deploy your application.
EclipseLink weaves applicable class files one at a time, as they are loaded at run time.