Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
I have tried dependency injection but, it cannot find my "Apache Sling Connection Pooled DataSource"
@referenceprivate DataSourcePool dsp;
DataSource ds = (DataSource) dsp.getDataSource("MYDB");
I am using SlingSafeMethodsServlet.
Any help would be appreciated.
Solved! Go to Solution.
Figured it out.
@reference(target = "(&(objectclass=javax.sql.DataSource)(datasource.name=MYDB))")private DataSource ds;
View solution in original post
Views
Likes
Replies