Skip to main content
Level 2
Aug 7, 2025 6:37 PM UTC
Question

Database - How to interact - MyBatis Framework

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Umesh_Thakur
Community Advisor
Community Advisor
Aug 13, 2025 10:50 AM UTC

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

Translate