I have two applications that I need to deploy, where both share the same hibernate entities. I have been looking into generating a HAR file and distributing with both my applications, inside each EAR.
The HAR file is generated correctly and loaded by hibernate, as per JBoss' log files, however I can't quite figure out how to setup my persistence.xml file to use the configuration from the HAR file. I have looked at a few different tutorials and not one had an example of using the HAR file with JPA.
I am running out of ideas at this point and even considering maintaining two sets of hibernate configuration files. I would appreciate any suggestions.
We are using Hibernate v3.2.4.sp1, EntityManager v3.2.1 with MySQL v5.0 and JBoss v4.2.2
Thank you in advance,
RogerC
|