Javarevisited
Published in

Javarevisited

Migrating code base to annotation-based spring transaction in 1 day

Why do we need to move?

  • We have a lot of boilerplate code which does “beginTransaction()”, “commit()” and “rollback()” which I feel is way out of date and no longer relevant considering the advances that has been happening in this area, so less or no code is always good code.
  • There are multiple paths in code where we started noticing errors like “Transaction not active”, “Unable to commit a transaction that’s already closed” in prod because of which user action will fail. The…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store