EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Dynamic Weaving
For current information, please see "Using Weaving" in the EclipseLink Solutions Guide: http://www.eclipse.org/eclipselink/documentation/latest/solutions/testingjpa004.htm#CHDEECDB
|Mailing List • Forums • IRC • mattermost|
|Open • Help Wanted • Bug Day|
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:
- 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.