Database - How to interact - MyBatis Framework | Community
Skip to main content
August 7, 2025
Question

Database - How to interact - MyBatis Framework

  • August 7, 2025
  • 1 reply
  • 573 views

Hi, on my project we are migrating from an existing portal to AEM cloud.
The current portal interfaces with a database to retrieve a series of data which is then printed on pages of the site. Currently, the Mybatis framework is used to interact with the database (the current portal does not run in AEM).
In Aem, is it not possible to use Mybatis?what is recommended instead?JDBC?

Thanks all!

1 reply

Umesh_Thakur
Community Advisor
Community Advisor
August 13, 2025

Yes you can use Mybatis with AEM as it mybatis is also a java framework, I think adding just dependency, creating configuration and creating services will be sufficient to get started with it.
For your references please go thru below post from @pallavi_shukla_ 
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/tuesday-tech-bytes-aem-week-03-integrating-aem-with-oracle-using/ba-p/689857

 and 

https://mybatis.org/mybatis-3/getting-started.html

 

Hope this helps

Umesh Thakur