Topic
IC4NOTICE: 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.
1 reply Latest Post - ‏2012-01-25T15:37:18Z by sutter
JerryGonzalez
JerryGonzalez
1 Post
ACCEPTED ANSWER

Pinned topic Single persistence.xml

‏2012-01-25T15:27:03Z |
Hi everybody.

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.
Updated on 2012-01-25T15:37:18Z at 2012-01-25T15:37:18Z by sutter
  • sutter
    sutter
    94 Posts
    ACCEPTED ANSWER

    Re: Single persistence.xml

    ‏2012-01-25T15:37:18Z  in response to JerryGonzalez
    Hi Jerry,
    This issue was recently discussed on another thread of this forum:
    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14781232&

    Thanks,
    Kevin Sutter, JPA Architect, IBM WebSphere