It has hap­pened a cou­ple of times that peo­ple have asked me how to start­up only the re­cov­ery part of their ap­pli­ca­tions. While there is no built-in sup­port in Atomikos (for now), here is a way to do it with Spring:

  • Con­cen­trate your DataSource, Con­nec­tionFac­to­ry and Trans­ac­tionMan­ag­er bean de­f­i­n­i­tions in one con­fig file, say in­fra­struc­ture-con­fig.xml (the term will sound fa­mil­iar to those who prac­tice Do­main-Driv­en De­sign (DDD)
  • Use this con­fig file in your ap­pli­ca­tion; this is your full run­time
  • Create a sep­a­rate Main that ini­tial­izes Spring with noth­ing else but this con­fig; this will be your re­cov­ery-only ru­time

Voila! En­joy...

RSS

Comments

Corporate Information

Atomikos Corporate Headquarters
Hoveniersstraat, 39/1, 2800
Mechelen, Belgium

Contact Us

Copyright 2026 Atomikos BVBA | Our Privacy Policy
By using this site you agree to our cookies. More info. That's Fine