We have not used any datasource.xml so far. 
Below the persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
  | <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="tawmonitorDatabase" 
transaction-type="RESOURCE_LOCAL">
  |    
  |       <provider>org.hibernate.ejb.HibernatePersistence</provider>
  | 
  |     
  |             <class>org.fundacionctic.tawmonitor.model.Analisis</class>
  |                 ..........
  | 
  |             
  |       <properties>
  | 
  |          <property name="hibernate.dialect" 
value="org.hibernate.dialect.MySQLInnoDBDialect"/>
  |          <property name="hibernate.connection.driver_class" 
value="org.gjt.mm.mysql.Driver"/>
  |           
  |          <property name="hibernate.connection.url" 
value="${hibernate.connection.url}"/>
  |          <property name="hibernate.connection.username" 
value="${hibernate.connection.username}"/>
  |          <property name="hibernate.connection.password" 
value="${hibernate.connection.password}"/>
  |                
  |       
  |          <property name="hibernate.hbm2ddl.auto" value="update"/>
  |          <property name="hibernate.show_sql" value="true"/>
  | 
  | 
  |         <property name="current_session_context_class" value="thread"/>
  | 
  |         <property name="hibernate.jdbc.batch_size" value="50"/>
  | 
  |         <property name="connection.pool_size" value="3"/>         
  |          
  |       </properties>
  |    </persistence-unit>
  | </persistence>
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128201
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to