Hello, I was trying to connect MySQL to AEM using Service but I got problem while doing it. Can you help me identify where the problem is?
DatabaseService.java
Here's my the datasource configuration
and the bundle that I've been using for the driver class
Here's the error I got from logger of my service.
com.ravens.core.servlets.DatabaseService ERROR OCCURED {} com.day.commons.datasource.poolservice.DataSourceNotFoundException: No data source found with name 'my database' (after asking 0 providers)
Thank you in advance
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @carlp80611821,
You should use an OSGi configuration named "Day commons JDBC Connections Pool" instead of Apache Sling Connection Pooled DataSource
Official Documentation related to this subject - https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/jdbc.html?lang=en
Hi @carlp80611821,
You should use an OSGi configuration named "Day commons JDBC Connections Pool" instead of Apache Sling Connection Pooled DataSource
Official Documentation related to this subject - https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/jdbc.html?lang=en