On Monday 16 February 2009 05:15:49 Torsten Krah wrote: > Am Samstag, 14. Februar 2009 17:11:55 schrieb Frans Thamura: > > i try use the non interceptor version, work well, but i find the > > interceptor cannot work with JTA related injection > > Why? > I am using S2 and Spring with JTA managed transaction too here and it works > fine (if spring is the object factory which does create your objects and > interceptors to get the persistence manager injected). >
I just want to second this... @Transactional rocks! I just mentioned in another thread that you can have your services wired into actions that are configured by Struts rather than the plugin. IMO, it's a good idea to have your transactions bounded to your service layer, this way you can keep Spring configuration (even if it is just the @Transactional annotation) out of your Struts objects. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org