April 13, 2020
Estimated Post Reading Time ~

Injecting a DataSourcePool Service into an Adobe Experience Manager OSGi bundle

This development article discusses how to inject a DataSourcePool service into an OSGi component. By injecting a DataSourcePool, your OSGi bundle can connect to a relational database such as MySQL. You configure a DataSourcePool using Adobe Experience Manager.

A DataSourcePool configured in Adobe Experience Manager
For information about configuring a DataSourcePool, see http://dev.day.com/docs/en/cq/current/developing/jdbc.html.

Note: You can create an OSGi bundle that is able to connect to a relational database without using a DataSourcePool. In this situation, you have to write a Java class that uses the JDBC API to connect to the database. For information, see http://scottsdigitalcommunity.blogspot.ca/2013/08/querying-and-persisting-adobe-aem-data.html.

To read this development article, click
http://helpx.adobe.com/experience-manager/using/datasourcepool.html.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.