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

OSGi.annotations best practices for Servlet's

Not applicable

Just getting up to speed with the new annotations(finally abandoning scr, already missing @SlingServet ), what is the preferred approach for writing meta-type annotations for Servlets.

Let's say I wanted to create servlet for following asset:


How does best practice implementation looks here?



2 Replies
Level 10
Level 10

Read this: Apache Sling - Servlets and Scripts

Looks like you want to bind a servlet to content. In this case - you want to bind a servlet to a resource sling.servlet.resourceTypes.

Not applicable

Sure, will do.

Thank you, Scott.