Getting null DataSourcePool / cannot get service using @Reference annotation | Community
Skip to main content
April 7, 2022
Solved

Getting null DataSourcePool / cannot get service using @Reference annotation

  • April 7, 2022
  • 1 reply
  • 715 views

What am I missing?

 

  • MySQL driver is installed:

 

  • I've configured DataSourcePool:

 

  • Java code, where I'm trying to retrieve connection:

 

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

Hi,

I tried this with mySQL , for me it worked with same settings.

let me share the code with you 

https://github.com/arunpatidar02/aem63app-repo/blob/master/java/utils/DSConnection.java

https://github.com/arunpatidar02/aem63app-repo/blob/master/java/utils/DSConnectionImpl.java

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 7, 2022