Thanks Romain, but it doesn't seem to make much of a difference

FO: Auto-deploying ejb EngineBean: EjbDeployment(deployment-id=EngineBean)
Oct 16, 2012 8:38:33 PM org.apache.openejb.config.AutoConfig deploy
INFO: Configuring PersistenceUnit(name=trabajo,
provider=org.hibernate.ejb.HibernatePersistence)
Oct 16, 2012 8:38:33 PM org.apache.openejb.config.AutoConfig
logAutoCreateResource
INFO: Auto-creating a Resource with id 'trabajoNonJta' of type 'DataSource
for 'trabajo'.
Oct 16, 2012 8:38:33 PM org.apache.openejb.config.AutoConfig deploy
INFO: Configuring Service(id=trabajoNonJta, type=Resource,
provider-id=trabajo)
Oct 16, 2012 8:38:33 PM org.apache.openejb.assembler.classic.Assembler
createRecipe

My EJB does not throw any exceptions on persist() flush() or find() and no
mysql table is created so I assume it's still happily persisting to HSQL
only this time via Hibernate! I've been here before! 

I'm going to have trouble seeling this to my boss if I can't even get it to
work . 

<Resource id="trabajo" auth="Container" type="javax.sql.DataSource">
      JtaManaged=true
      maxActive=100
      maxIdle=30
      maxWait=10000
      username=colin
      password=colin 
      driverClassName=com.mysql.jdbc.Driver
      url=jdbc:mysql://localhost:3306/trabajo
   </Resource>            

   <persistence-unit name="trabajo">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <transaction-type>JTA</transaction-type>
        <jta-data-source>trabajo</jta-data-source>
       <class>com.trabajo.jpa.UserJPA</class>
     <properties>
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
     </properties>
   </persistence-unit>






--
View this message in context: 
http://openejb.979440.n4.nabble.com/DataSource-Adjustment-tp4658033p4658085.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to