Lot of new information I am getting to know from you. Thank you Kevin.

Kevin Sutter wrote:
> 
> Correct.  If you are using JPA within WebSphere and using
> container-managed 
> persistence (another "best practice"), then your entities will
> automatically 
> get enhanced as they are loaded into the Container environment.  This is
> the 
> case for both the EJB and Web Container scenarios. 
> 
Below are the steps I have done for using OpenJPA in our Ear/Web Application
deployed on IBM RAD/WAS v7.0:
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
2. declared all my Entities in persistence.xml
3. use JPA annotations for all my Entities
With the above mentioned steps, I assume that IBM WAS will automatically
enhance my Entities and I do not need to do anything extra. Is my
understanding correct? Also, as you said I am not using any
container-managed persistence.  or am I missing any configuration or funda
for leveraging JPA/OpenJPA entity classes enhancement (for performance
reasons) inside IBM RAD and its WAS v7.0 test environment? Could you please
clarify ?


Kevin Sutter wrote:
> 
> Excellent.  As an FYI, the OpenJPA 2.0.x service stream ships with the 
> WebSphere OSGi/JPA 2.0 Feature Pack that sits on top of WAS v7.0.  As a
> WAS 
> v7 customer, this FeP is available for a free download, in case you are 
> interested.  More information can be found here: 
> 
> http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/
> 
I will start looking at the URL you gave above but please excuse me for my
curiosity and if I am jumping into questions too early. We are using IBM RAD
and IBM WAS v7.0 test environment inside IBM RAD and I suppose we already
have OpenJPA in IBM WAS v7.0 test environment when we installed IBM RAD and
its WAS v7.0 test environment. If my understanding is correct then why do we
need this "WebSphere Application Server V7 Feature Pack for OSGi
Applications and Java Persistence API 2.0"?

-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/JPA-OpenJPA-Best-Practices-Performance-Tips-tp5600136p5604045.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to