Exposing AEM Servlet or Service as Rest Service
Hi Experts,
I am new to AEM, I am trying to create a wrapper class around an AEM servlets and this wrapper or service, and this will be called by external systems as same as rest service call. This wrapper will call servlet internally.
Data flow:
ExternalSystem >>>> Wrapper class or Service in AEM >> Servlet (which is having business logic), servlet will return json to wrapper or service which will return the response over rest call to external system.
I am aware that that Sling servlets can be exposed as rest call but we dont want to use that as per design.
I am using JAX-RS-Connector for the same but somehow it is not working as expected. I read the same concept at About technologies: Be RESTful on AEM6 but unsuccessful.
Regards
Vikas