Hi,
I have configured my project to support static weaving but lazy loading is not functioning.
Tools
Project stracture
ear containing:
My problem is that: even after weaving seems to be successful (I decompiled classes and checked), my application continue to load child objects of Customer entitty eagerly (I see select statments in logs) and it hangs on the following statement:
Client client = em.find(Client.class, clientId, LockModeType.PESSIMISTIC_WRITE);
Does Lazy Loading not work with pessimistic write? Am I missing a JPA or EclipseLink concept here? Please assist.
Here is my persitance.xml property settings:
<properties>
<property name="eclipselink.logging.level" value="FINE" />
<property name="javax.persistance.lock.timeout" value="5000" />
<property name="eclipselink.target-database" value="Oracle" />
<property name="eclipselink.logging.level.sql" value="FINE" />
<property name="eclipselink.logging.parameters" value="true" />
<property name="eclipselink.deploy-on-startup" value="true" />
<property name="eclipselink.target-server" value="JBoss" />
<property name="eclipselink.weaving" value="static"/>
</properties>
This issue was eventually resolved by upgrading to a newer version of EclipseLink