Hi all

I'm using Sling Datasource Bundle (org.apache.sling.datasource) and I configured two entries named (datasource.name property): *source1* and *source2*.
I can select single datasource using DS annotations:

@Reference(target = "(&(objectclass=javax.sql.DataSource)(datasource.name=*source1*))")
private DataSource dataSource;

But ... how can I select single datasource programmatically ?

Thanks a lot.
Regards.

Reply via email to