openjpa.RuntimeUnenhancedClasses & Java6

This is a discussion on openjpa.RuntimeUnenhancedClasses & Java6 within the Apache forums in Application Servers & Tools category; Hello, a while ago we discussed the (still undocumented; see https://issues.apache.org/jira/browse/OPENJPA-650 !) openjpa.RuntimeUnenhancedClasses configuration in this list. A question: On Java6, according to http://openjpa.apache.org/builds/lat...ide_pc_enhance ..html#ref_guide_pc_enhance_unenhanced_types, "OpenJPA will attempt to dynamically register a ClassTransformer that will redefine your persistent classes on the fly to track access to persistent data" without specifying a javaagent. However, with openjpa.RuntimeUnenhancedClasses=unsupported it still says "org.apache.openjpa.persistence.ArgumentExcept ion: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: ..." - isn't this inconsistent / wrong? It would be useful to have a possibility / ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-17-2008, 09:14 AM
Michael Vorburger
Guest
 
Default openjpa.RuntimeUnenhancedClasses & Java6

Hello,

a while ago we discussed the (still undocumented; see
https://issues.apache.org/jira/browse/OPENJPA-650 !)
openjpa.RuntimeUnenhancedClasses configuration in this list.

A question: On Java6, according to
http://openjpa.apache.org/builds/lat...ide_pc_enhance
..html#ref_guide_pc_enhance_unenhanced_types, "OpenJPA will attempt to
dynamically register a ClassTransformer that will redefine your
persistent classes on the fly to track access to persistent data"
without specifying a javaagent. However, with
openjpa.RuntimeUnenhancedClasses=unsupported it still says
"org.apache.openjpa.persistence.ArgumentExcept ion: This configuration
disallows runtime optimization, but the following listed types were not
enhanced at build time or at class load time with a javaagent: ..." -
isn't this inconsistent / wrong?

It would be useful to have a possibility / configuration option which
PREVENTS users from running OpenJPA with that stupid (useless) "runtime
enhancement", and makes them specify the javaagent under Java5 (that's
what openjpa.RuntimeUnenhancedClasses=unsupported does, works well), but
which when you're running under Java6 does not abort and uses that
dynamic ClassTransformer. For now I'm doing if
(System.getProperty("java.version").startsWith("1. 5")) {
p.setProperty("openjpa.RuntimeUnenhancedClasses", "unsupported"); } and
that works ;-), but IMHO it would make sense to extend the
RuntimeUnenhancedClasses related check inside OpenJPA with something
like this? JIRA?

Thanks & Regards,
Michael


__________________________________________________ __________

• This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
• Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
• Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Financial
Technologies SA unless otherwise specifically stated.
• An electronic message is not binding on its sender. Any message referring to
a binding engagement must be confirmed in writing and duly signed.
• If you have received this email in error, please notify the sender immediately
and delete the original.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:15 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.