I'm running my app on WAS 220.127.116.11 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" />
This topic has been locked.
2 replies Latest Post - 2013-01-14T15:31:00Z by sutter
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 PostsACCEPTED ANSWER
Re: Is openjpa.RuntimeUnenhancedClasses setting ignored by WAS ?2013-01-14T15:18:16Z in response to SystemAdminThe "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 120000EB4G93 PostsACCEPTED ANSWER
Re: Is openjpa.RuntimeUnenhancedClasses setting ignored by WAS ?2013-01-14T15:31:00Z in response to leealberIt looks like Bernard is posting the same question multiple times... Let's cut this back to a single conversation...
Kevin Sutter, JPA Architect, IBM WebSphere