A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Spring Transaction Management: Execute a method right after a transaction is opened
Ioan Damian Sirbu
Joined: Dec 22, 2008
Aug 31, 2010 06:00:12
I am using the classic AOP approach to transaction management in my application with pointcuts on facade and dao methods.
<aop:config> <aop:pointcut id="daoServices" expression="execution(* com.myapp.dao.*.*(..))" />
However, I also want to
execute another method
, something like UserManager.sendUserId()
right after the transaction manager opened a transaction, each time it opens a new transaction
I tried - without any success - to place pointcuts on AbstractPlatformTransactionManager and on Spring's JmsTransactionManager. (maybe these classes cannot be proxyed?).
Basically all I need is to intercept when a transaction gets opened.
Is there any way I could achieve this?
Thank you in advance!
I agree. Here's the link:
subject: Spring Transaction Management: Execute a method right after a transaction is opened
Restrictions on Transactions
TransactionRequiredException - Help required !!!
Meaning of Transaction-type under ejb-jar.xml is set to Container ??
Challenge ! Hibernate, Spring and the Transactions...
Hibernate doesn't use Oracle's native isolation levels
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014