Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Database - How to interact - MyBatis Framework

Avatar

Level 2

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!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

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-a...

 and 

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

 

Hope this helps

Umesh Thakur