Announcement Announcement Module
Collapse
No announcement yet.
hibernate4.LocalSessionFactoryBean missing exposeTransactionAwareSessionFactory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hibernate4.LocalSessionFactoryBean missing exposeTransactionAwareSessionFactory

    When I migrate from Spring and Hibernate to Spring 3.1.1 and Hibernate 4.1.2, I found that org.springframework.orm.hibernate4.LocalSessionFac toryBean does not provide exposeTransactionAwareSessionFactory property, that let Hibernate cannot find transaction to process.

    Any alternative to fix it, thanks.

    Spring configuration:
    <bean id="adsr3SessionFactory" class="org.springframework.orm.hibernate4.LocalSes sionFactoryBean">
    <property name="dataSource" ref="adsr3DataSource" />
    <property name="exposeTransactionAwareSessionFactory" value="true" />


    regards,

    Franco
Working...
X