• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiple products with in same JBOSS Issue

 
Greenhorn
Posts: 3
MyEclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

So, what can i do?


My ProjectA.war Configurations as like below...



My ProjectB.war Configurations as like below...



And the console error like below ....



In above error description....


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


I posted the same issue in JBOSS Community and Oracle Community, but still i did not got any answer. Please help me. I am in very crucial stage.

Please help me to solve the problem....
 
srihari rao
Greenhorn
Posts: 3
MyEclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me.

Please give me a suggestion to solve the problem..
 
reply
    Bookmark Topic Watch Topic
  • New Topic