[jboss-user] [JBoss Seam] - datasource testing

alex_enache do-not-reply at jboss.com
Wed Aug 29 03:02:00 EDT 2007


Hi,

I have a small question. I've configured SEAM to use MySQL. And I want to do some small testing with it. 

myapp-ds.xml
<datasources>
  | 	<local-tx-datasource>
  | 		<jndi-name>myTestDataSource</jndi-name>
  | 		<connection-url>jdbc:mysql://localhost:3306/test</connection-url>
  | 		<driver-class>com.mysql.jdbc.Driver</driver-class>
  | 		<user-name>mytestuser</user-name>
  | 		<password>mytestpass</password>
  | 		<metadata>
  | 			<type-mapping>mySQL</type-mapping>
  | 	    </metadata>
  | 	</local-tx-datasource>
  | </datasources>

persistence.xml
<persistence>
  | 	<persistence-unit name="myTestDB">
  | 		<provider>org.hibernate.ejb.HibernatePersistence</provider>
  | 		<jta-data-source>java:/myTestDataSource</jta-data-source>
  | 		<properties>
  | 			<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
  | 			<property name="hibernate.hbm2ddl.auto" value="none"/>
  | 		</properties>
  | 	</persistence-unit>
  | </persistence>

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

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



More information about the jboss-user mailing list