I have tried dependency injection but, it cannot find my "Apache Sling Connection Pooled DataSource"
@reference
private DataSourcePool dsp;
DataSource ds = (DataSource) dsp.getDataSource("MYDB");
I am using SlingSafeMethodsServlet.
Any help would be appreciated.
Solved! Go to Solution.
Views
Replies
Total Likes
Figured it out.
@reference(target = "(&(objectclass=javax.sql.DataSource)(datasource.name=MYDB))")
private DataSource ds;
Views
Replies
Total Likes
Figured it out.
@reference(target = "(&(objectclass=javax.sql.DataSource)(datasource.name=MYDB))")
private DataSource ds;
Views
Replies
Total Likes