[jboss-user] [EJB 3.0] - Re: How to connect multiple databases at same time?

waynebaylor do-not-reply at jboss.com
Fri Oct 12 13:53:50 EDT 2007


  | <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  |    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
  |    version="1.0">
  |    
  | 	<persistence-unit name="example" transaction-type="JTA">
  | 	
  | 		<provider>org.hibernate.ejb.HibernatePersistence</provider>
  | 		<jta-data-source>java:/OraDS</jta-data-source>
  | 	
  | 		<class>com.example.....</class>
  | 	
  | 		<properties>
  | 			<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  | 			<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
  | 			<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect"/>
  | 		
  | 		</properties>
  | 	
  | 	</persistence-unit>
  |    
  | </persistence>
  | 

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

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



More information about the jboss-user mailing list