[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

grdzeli_kaci do-not-reply at jboss.com
Sun Aug 13 12:16:22 EDT 2006


hi all, i had already problem like this and my mistake was that i hadn't  unitname in the persistance.xml file 
i think if u must add this in u your persistance.xml 


  | 	<persistence-unit name="Blah1" transaction-type="JTA">
  | 		<jta-data-source>java:/XAOracleDS</jta-data-source>
  | 		<class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
  | 		<properties>			
  | 		 [props]
  | 		</properties>
  | 	</persistence-unit>	
  | 
  | 
in second persistanc.xml

  | 	<persistence-unit name="Blah2" transaction-type="JTA">
  | 		<jta-data-source>java:/XAOracleDS</jta-data-source>
  | 		<class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
  | 		<properties>			
  | 		 [props]
  | 		</properties>
  | 	</persistence-unit>	
  | 
  | 

u also could put more then one persistance unit in one persistance.xml file

  | 	<persistence-unit name="Blah1" transaction-type="JTA">
  | 		<jta-data-source>java:/XAOracleDS</jta-data-source>
  | 		<class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
  | 		<properties>			
  | 		 [props]
  | 		</properties>
  | 	</persistence-unit>	
  | 	<persistence-unit name="Blah2" transaction-type="JTA">
  | 		<jta-data-source>java:/XAOracleDS</jta-data-source>
  | 		<class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
  | 		<properties>			
  | 		 [props]
  | 		</properties>
  | 	</persistence-unit>	
  | 
  | 

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964849



More information about the jboss-user mailing list