Announcement Announcement Module
Collapse
No announcement yet.
How to use a customer TransactionInterceptor to replace the default Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use a customer TransactionInterceptor to replace the default

    I want to use a customer TransactionInterceptor to replace the default when I use @Transactional in order to add some logics before and after the transaction works , and I define a class extends the TransactionInterceptor and override the invoke method ,but It not work ,I guess that the default interceptor used for tx:annotation-driven is the
    TransactionInterceptor , and How I can change to My "TransactionInterceptor".

    Who Can Help Me ! You Are Very Pleasure!!

  • #2
    Why do you need to replace the TransactionInterceptor for that?! Why not simply put the additional code in a seperate aspect/interceptor and apply it before the TransactionInterceptor? Why modify existing code?

    The TransactionInterceptor should only concerned about transactions not the fact that there is some business logic to execute.

    Comment

    Working...
    X