Listener on transaction start
问题 I am looking for a clean solution to have a listener for transaction start. That means I would like the listener to be a bean (component) in the spring context that would receive an event on transaction start from TransactionPlatformManager or Hibernate Session or something similar, at the point where a new transaction is started. Something along: @Component class TransactionListener implements ?? { @Autowired private Something x; public void onTransactionBegin(...) { x.doSomething() } } To