Search code examples
content-management-systemaem

How to replace name = "sling.servlet.paths", value = "/bin/services/Servlet"), value = "/SomethingElse/services/Servlet"),


In AEM 6 SP3, I have a servlet where I want to replace the property name value from "/bin/services/Servlet" something else like:

, value = "/SomethingElse/services/Servlet"

How do I enable the same and checkin to my git/SVN ?


Solution

  • AEM allow few context path to be accessed as servlet, /bin is one of default path which is used for internal servlets, and for any project specific servlet you might need to use some different content path for that you need to add your context path in OSGI service Apache Sling Servlet Resolver PID: org.apache.sling.servlets.resolver.SlingServletResolver