Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

What is Sling Servlet? | AEM Community Blog Seeding




What is Sling Servlet? by Heena Shirke


Sling Servlet enables us to expose OSGI Service based on request - response model.

Every Sling Servlet must implement the Servlet interface which defines its lifecycle methods.

It must either extend SlingSafeMethodsServlet or SlingAllMethodsServlet

Servlet can either be path based(tagged to a specific paths) or resource based(tagged to specific resource types).

Lets create our first servlet:

Register Servlet as an OSGI component.

property={"sling.servlet.methods=post", "sling.servlet.paths=/bin/sampleservlet"})

Read Full Blog

What is Sling Servlet?


Please use this thread to ask the related questions.

0 Replies