This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring Transaction Management: Execute a method right after a transaction is opened Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Transaction Management: Execute a method right after a transaction is opened" Watch "Spring Transaction Management: Execute a method right after a transaction is opened" New topic
Author

Spring Transaction Management: Execute a method right after a transaction is opened

Ioan Damian Sirbu
Greenhorn

Joined: Dec 22, 2008
Posts: 18
Greetings all,

I am using the classic AOP approach to transaction management in my application with pointcuts on facade and dao methods.


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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring Transaction Management: Execute a method right after a transaction is opened
 
Similar Threads
Challenge ! Hibernate, Spring and the Transactions...
TransactionRequiredException - Help required !!!
Restrictions on Transactions
Meaning of Transaction-type under ejb-jar.xml is set to Container ??
Hibernate doesn't use Oracle's native isolation levels