I’m using tomcat and Spring 3.1 to develop a Maven webapp. The data source is defined as JNDI in tomcat. I’m thinking about using @Transactional annotation.
How to implement transaction in the service layer? Could you please point me at the right direction as what kind of transaction management should I use? JTA, JPA or others? And how to configure it? Which dependencies do I need?
Thanks.
You don’t use JPA unless that’s your implementation.
It’s far more likely that you’re using JTA.
Here is a Spring transactional tutorial.