-
May 20th, 2009, 02:57 PM
#1
JPA and SimpleJdbcTemplate in same transaction
Hi,
I have an application which has different data access strategies:
JPA via @PersistenceContext and SimpleJdbcTemplate.
Now I need so make a call into a JPA-DAO and into a SimpleJdbcTemplate-DAO in the same transaction.
How can this be done? May JPATemplate instead of SimpleJdbcTemplate be the solution?
I use:
org.apache.commons.dbcp.BasicDataSource
org.springframework.orm.jpa.LocalContainerEntityMa nagerFactoryBean
org.springframework.orm.jpa.JpaTransactionManager
org.springframework.orm.jpa.support.PersistenceAnn otationBeanPostProcessor
tx:annotation-driven
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules