I am trying to follow this tutorial and at same time adapting it to run in on Websphere 8.5.5 with default Websphere JPA ( OpenJPA ) implementation.
I created the project in Eclipse and use WAS for Developers.
Initially, when running the application, I was receiving errors about resource-ref not available ( do not remember the exact error message )
After some research and a lot of trial-and-error approach, I got the application to work. I had to make ( or made ) changes in the web.xml and ibm-web-bnd.xml to add resource-ref to the datasource defined in persistence.xml ( don't remember, if I changed anything else in the trial and error attempt ).
But now, I have the following questions
What are the changes that are actually needed to be made to make the application work?
What is the relationship between datasource in persistence.xml and resource-ref in web.xml / ibm-web-bnd.xml?
This is currently done in a dynamic web project. What other changes do I need to make, if I want to create a JPA in an EJB project or a JPA project?
In this tutorial, the JPA is in dynamic web project. What changes do I need to make, if I create an ejb project / JPA project and want to execute the application that way, instead of defining the JPA in web project?
Is there any technote or other documentation that explains this?