Question

I am using struts2.0 for my project named online examination system.

I am using traditional JDBC approach in datya access layer. I can't use JPA.

I want to make entire service layer transactional, but i searched for the transaction support in struts2 but didn't get anything.

Although spring provides good support for making service layer transactional.

Please help me on this issue to find out transaction support in struts2.

Was it helpful?

Solution

You are on a wrong track here.Struts2 is only for MVC part and what you are doing at your service layer it has nothing to do with that.

If you want to take advantage of transaction API i suggest you to use either Spring AOP of if i am correct Google Guice also provides a way for AOP.

Whatever you use at your service layer for transaction handling Struts2 is independent of it and out of context

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top