• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ioan Damian Sirbu
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!