[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

rmcalderero do-not-reply at jboss.com
Sun Feb 10 16:32:45 EST 2008


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



More information about the jboss-user mailing list