| Multiple JPA Persistences loading issue in JBOSS 5 [message #1064224]
||Tue, 18 June 2013 10:30
|| SRIHARIRAO M
Registered: June 2013
Location: Hyderabad, India
Hello Every One!! |
I have two projects "ProjectA.war" and "ProjectB.war".
In both projects, i am using Oracle 11g, JPA2 with EclipseLink 2.4.2.
and i am using JBOSS 5.1.0 GA application server.
Both have different persistence.xml files with different persistence-unit names, different datasource files.
Here i am connecting same Oracle DB user for both projects.
My Problem is...
First i had deployed ProjectA.war in server. And it is working fine. and DB operations also working fine.
Now i am deploying the ProjectB.war in server besides of ProjectA.war.
So, when i am trying to perform the db operations on ProjectA.war then jboss is searching the POJO classes in ProjectB.war's persistenece.xml file with the help of ProjectB's persistence-unit name.
But actually it need to search in ProjectA.
My ProjectA.war Configurations in the attached document "Project_A.xml".
My ProjectB.war Configurations in the attached document "Project_B.xml".
And the console error was described in the attached document "Console_Error.log".
In above error description....
"INFO [IportIBEntity] finding IptUsers instance with property: userCode, value: ADMIN"
here IportIBEntity is the persistence-unit of ProjectB.war, but IptUsers pojo have in ProjectA.war. So, it is trying to search the pojo in ProjectB.war instead of ProjectA.war
Please help me to solve the problem....
Powered by FUDForum
. Page generated in 0.07866 seconds