Re: How to programmatically get PlatformTransactionManager of a DAO ?

2010-12-19 Thread Zilvinas Vilutis
why don't you expose a getTxManagerUser method in your AbstractDao class? regards Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com On Sat, Dec 18, 2010 at 9:36 AM, smallufo small...@gmail.com wrote: Thanks. but declarative txManagement add a lot of complexity to

How to programmatically get PlatformTransactionManager of a DAO ?

2010-12-18 Thread smallufo
I am developing a generic CRUD app , that can edit any Spring/JPA entities with a AbstractDao pattern's implementation , such as UserDaoImpl , ForumDaoImpl ...etc In my wicket page : I have to use @SpringBean to identify which PlatformTransactionManager to use , such as :

Re: How to programmatically get PlatformTransactionManager of a DAO ?

2010-12-18 Thread James Carman
Use declarative transaction management instead On Dec 18, 2010 10:59 AM, smallufo small...@gmail.com wrote: I am developing a generic CRUD app , that can edit any Spring/JPA entities with a AbstractDao pattern's implementation , such as UserDaoImpl , ForumDaoImpl ...etc In my wicket page : I

Re: How to programmatically get PlatformTransactionManager of a DAO ?

2010-12-18 Thread smallufo
Thanks. but declarative txManagement add a lot of complexity to XMLs Is there any other option ? 2010/12/19 James Carman ja...@carmanconsulting.com declarative transaction management

Re: How to programmatically get PlatformTransactionManager of a DAO ?

2010-12-18 Thread James Carman
Use annotations On Dec 18, 2010 11:37 AM, smallufo small...@gmail.com wrote: Thanks. but declarative txManagement add a lot of complexity to XMLs Is there any other option ? 2010/12/19 James Carman ja...@carmanconsulting.com declarative transaction management