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.
Join the Experience League
To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.
Join the Adobe Experience League by clicking this banner.
I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.
Linked In: http://www.linkedin.com/in/scottmacdonald2010
YouTube: Subscribe to the AEM Community Channel.
I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.
Linked In: http://www.linkedin.com/in/scottmacdonald2010
YouTube: Subscribe to the AEM Community Channel.