EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Static Weaving
|Mailing List • Forums • IRC • mattermost|
Configuring Static Weaving
Use this option to weave all applicable class files at build time so that you can deliver pre-woven class files. Consider this option to weave all applicable class files at build time so that you can deliver prewoven class files. By doing so, you can improve application performance by eliminating the runtime weaving step required by dynamic weaving (see Configuring Dynamic Weaving).
In addition, consider using dynamic weaving to weave in Java environments where you cannot configure an agent.
Prior to weaving, you must configure your persistence unit to be understood by EclipseLink. There are two basic configurations:
Configuration Using a Jar File
This is the configuration specified in the JPA 2.0 specification. Requirements are:
- Classes stored at the base in directories based on their package structure
- A META-INF directory containing the persistence.xml file. Note: Using the persistenceunitinfo setting below, you can avoid this requirement.
For example, mypersitenceunit.jar could contain
For more information, see Section 11.1.18 "Persistence Unit Packaging" in the JPA Specification.