[jboss-user] [EJB 3.0] - Re: One PersistenceUnit, multiple DataSources

2008-01-04 Thread fla83tn
I tried to do as you adviced but I get the following error on jboss4.2.2-GA [Configuration] Reading mappings from resource : persistence-mapping-file.xml 10:02:10,488 ERROR [AbstractKernelController] Error installing to Start: name=persistence.units:unitName=NewsCrawlerPu state=Create javax.persi

[jboss-user] [EJB 3.0] - Re: One PersistenceUnit, multiple DataSources

2007-02-21 Thread 7rond
So, I think I figured out a solution that works for me. In my persistence.xml in my original application EAR, I removed the jar-references and instead added this; | persistence-mapping-file.xml | Then, in the persistence.jar within the EAR, I added the persistence-mapping-file.xml contain

[jboss-user] [EJB 3.0] - Re: One PersistenceUnit, multiple DataSources

2007-02-21 Thread 7rond
OK, just as an update - I've figured out that bundling the war inside another ear - also containing a jar with a new persistence.xml that maps to the war's datasource works as intended. Now bundling the war like this: | webapp1.ear |-> webapp1.war |-> webapp1-persistence.jar |