I have a little problem with my application, because i have about 15 ejb-jar projects that use jpa, so i have to have a persistece.xml for each of these proyects.
I would like to know if it´s possible to have just one persistence xml shared to all projects.
I´m using WAS V7.0 with JPA 2.0 support with Hibernate implementation. My projects are packaged into a jar file and deployed in the server, i have tried to make a jar file with a unique persistence.xml and put this file as a shared library in the shared libraries section of the server and remove all persistece.xml from de ejb jar projects but it doesn´t work.
Thank if anybody knows how to resolve this problem.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2012-01-25T15:37:18Z by sutter
Pinned topic Single persistence.xml
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-01-25T15:37:18Z at 2012-01-25T15:37:18Z by sutter
sutter 120000EB4G94 PostsACCEPTED ANSWER
Re: Single persistence.xml2012-01-25T15:37:18Z in response to JerryGonzalezHi Jerry,
This issue was recently discussed on another thread of this forum:
Kevin Sutter, JPA Architect, IBM WebSphere