Hi Ville,

I think you have to explicitly specify your Entities in persistence.xml, 
otherwise they will deployed to "default" = first one, only.

<persistence-unit name=" my-operative-db "> 
   <jta-data-source> java:/my-operative-db </jta-data-source> 
   <jar-file> ../entity-data.jar </jar-file>
   com.yourhost.domain.Entity1
   com.yourhost.domain.Entity2
   <properties... 
</persistence-unit> 
<persistence-unit name=" my-backup-db "> 
   <jta-data-source> java:/my-backup-db </jta-data-source> 
   <jar-file> ../entity-data.jar </jar-file>
   com.yourhost.domain.Entity1
   com.yourhost.domain.Entity2
   <properties... 
</persistence-unit>

Bye
Dalibor

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006299#4006299

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006299
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to