That clarifies a lot Kevin. Thank you.
Kevin Sutter wrote: > > Hmmm... If this works for you, I would be surprised. Unless all > interaction with OpenJPA is done in application-managed mode. And, thus, > you would not be able to take advantage of the container automatically > enhancing your Entities. Here's why... > > WAS v7 is a Java EE 5 compliant application server. It knows about the > JPA > 1.0 specification, APIs, and implementations. Although JPA 2 is binary > compatible with JPA 1 from an application runtime perspective, it does > require some new XSD and API updates. These are packaged as part of the > WebSphere runtime in the plugins directory as OSGi bundles. Without some > type of "covert action", WAS v7 only knows about JPA 1.0. > > Thus, the need for the JPA 2.0 Feature Pack (your later question)... With > the OSGi and JPA 2.0 Feature Pack, the WAS v7 environment is upgraded to > recognize the XSD's and API's needed for the JPA 2.0 programming model. > Of > course, WAS continues to support JPA 1.0, but it also can now support JPA > 2.0. > ..... > ..... > ..... > I think I answered this above. If you decide to try out the OSGi and JPA > 2.0 FeP, then you should also move to the RAD v8 tooling. This is fully > supported with WAS v7 and it also provides the necessary tooling for OSGi > and JPA 2.0. > I'll definitely try to install the "WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API 2.0". However after installing "WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API 2.0", do I need to configure anything w.r.t JPA/OpenJPA for leveraging JPA/OpenJPA entity classes enhancement inside IBM RAD and its WAS v7.0 test environment? Or can I assume that after I install ""WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API 2.0"", I'll automatically get entity class enhancements when my Ear/Web Application is deployed on IBM RAD/WAS v7.0 where my Ear/Web application is packaged as said below: a. I have downloaded the latest OpenJPA 2.0.1 jars and created a java utility project(say for example, my-commons) inside RAD and placed the OpenJPA jars inside my-commons\lib b. declared all my Entities in persistence.xml c. use JPA annotations for all my Entities Could you please clarify? -- View this message in context: http://openjpa.208410.n2.nabble.com/JPA-OpenJPA-Best-Practices-Performance-Tips-tp5600136p5608366.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
