I'm running my app on WAS 126.96.36.199 with Feature Pack for OSGi Applications and Java Persistence API 2.0:
I have enhanced (build-time) my JPA 2.0 persistence classes and settings on my persistence.xml
• <property name="openjpa.RuntimeUnenhancedClasses" value="supported" />
Please advice if I do something wrong here.
Initially I encountered "OutOfMemoryError" but now it seems ok after changes made with the above settings:
"12/20/12 19:42:51:726 PST 00000982 SystemOut O 1425 medx-persistence-pu INFO ThreadPool worker thread #13 openjpa.Enhance - Creating subclass for "[class com.compressus.medx.persistence.entity.Otherpatientaddress, class com.compressus.medx.persistence.entity.Peermsg,........."
"12/20/12 14:55:53:439 PST 00000333 SystemOut O INFO *** Persistence started at Thu Dec 20 14:55:53 PST 2012" seen this Four times before the OutOfMemoryError occurs.
The initial settings were:
<property name="openjpa.RuntimeUnenhancedClasses" value="unsupported" />
Pinned topic Is openjpa.RuntimeUnenhancedClasses setting ignored by WAS ?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-14T15:31:00Z at 2013-01-14T15:31:00Z by sutter
leealber 1100005V7019 Posts
Re: Is openjpa.RuntimeUnenhancedClasses setting ignored by WAS ?2013-01-14T15:18:16ZThis is the accepted answer. This is the accepted answer.The "openjpa.RuntimeUnenhancedClasses" property is confusing, it depends on the version and provider you are using. Due to the incomplete nature of implementation, the recommended setting is "unsupported".
If you are running in the container, WebSphere should automatically invoked the standard enhancer rather than using the subclassing implementation, which the openjpa.RuntimeUnenhancedClasses property is being used. If you enable trace "JPA=all", you should see the container get into the path where the transformer is being called to enhance entity class when "almost" every class is loaded.
Have you enhanced the WebSphere profile after installing the OSGI/JPA Feature Pack?
sutter 120000EB4G94 Posts
Re: Is openjpa.RuntimeUnenhancedClasses setting ignored by WAS ?2013-01-14T15:31:00ZThis is the accepted answer. This is the accepted answer.
- leealber 1100005V70
Kevin Sutter, JPA Architect, IBM WebSphere