This post originated from an RSS feed registered with Java Buzz
by Jerome Bernard.
Original Post: Spring, Hibernate and Java 5 annotations
Feed Title: Kalixia
Feed URL: http://feeds.feedburner.com/kalixia/?cat=3
Feed Description: A small place for distributed computing...
I spent a little bit of time figuring out how to use the Spring Framework with Hibernate and Java 5 annotations. I'm not speaking of Hibernate annotations, but instead transactional annotations.
Anyway, here is the solution I found:
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="dataSource" ref="dataSource"/>
[...]