No data source found with name '' (after asking 0 providers)
Hi,
I have to connect to an SQL server from AEM. I have a bundle created with the SQL jdbc driver and installed on OSGi. and I have the connection uri configured on the felix console with datassource name mysqlserver.
when I use the below code
@Reference
private DataSourcePool dspService;
DataSource dataSource = (DataSource) dspService.getDataSource("mysqlserver");
I get this error:
No data source found with name '' (after asking 0 providers)
could I get some assistance in identifying what went wrong.
Regards