[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Sharing persistence between different jar files in ear ?

georgesberscheid do-not-reply at jboss.com
Mon Feb 4 06:33:38 EST 2008


Use the jar-file tag in persistence.xml:

  | <persistence>
  | 	<persistence-unit name="persistenceunit">
  | 		<jta-data-source>jndiName</jta-data-source>
  | 		<properties>
  | 			<!-- other properties -->
  | 		</properties>
  | 		<jar-file>../your-jar-file-thats-also-in-the-root-of-your-ear.jar</jar-file>
  | 	</persistence-unit>
  | </persistence>
  | 

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

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



More information about the jboss-user mailing list