When the user fills in the fields and clicks the Submit button, the data is persisted in a relational database by using a DataSourcePool.
This development article discusses how to inject a DataSourcePool service into an AEM service to which an HTL component submits data. By injecting a DataSourcePool, your service can connect to a relational database such as MySQL.
This article shows use of the following AEM technologies:
1. Build a HTL component that can submit data to a back-end service.
2. Use Sling Models with an HTL component.
3. How to inject a DataSourcePool into an AEM 6.3 service.
4. How to use the org.osgi.service.component.annotations.Component package to write an AEM Servlet.
To read this development article, click https://helpx.adobe.com/experience-manager/using/aem63_email_signup.html.