Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there is option to mention TransactionModeas manged property in Hibernate

 
AnalyseNew veera
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I moved to Hibernate Persistence instead of open JPA persistence providerIMPL due to Jboss eap 6.4 open JPA issue earlier in persistence.xml  it is mentioned as below for OPEN JPA
<property name="openjpa.TransactionMode" value="managed"></property>
        <property name="openjpa.ConnectionRetainMode" value="always"/>

Now I changed to HibernatePersistence and added hibernatec3p0 properties instead of above property.

  <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>pac</jta-data-source>
<property name="hibernate.connection.provider_class"
          value="org.hibernate.connection.C3P0ConnectionProvider" />

        <property name="hibernate.c3p0.max_size" value="100" />
        <property name="hibernate.c3p0.min_size" value="0" />
        <property name="hibernate.c3p0.acquire_increment" value="1" />
        <property name="hibernate.c3p0.idle_test_period" value="300" />
        <property name="hibernate.c3p0.max_statements" value="0" />
        <property name="hibernate.c3p0.timeout" value="100" />


Now my doubt is is the aboove  Hibernate c3p0 propery solve OpenJPA transaction mode "managed" and connectionRetainmode "always".Please help on this


Thanks
AnalyseTest
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!