nerdexam
Adobe

AD0-E128 · Question #7

A developer has this OSGI component: @Component(service = Servlet.class, property = { ServletResolverConstants.SLING_SERVLET_PATHS + "=/bin/healthcheck"…

The correct answer is C. Select the Components tab > Check that the OSGi component is listed > Click disable Action. See the full explanation below for the reasoning.

Troubleshoot and Optimize AEM Sites Solutions

Question

A developer has this OSGI component:

@Component(service = Servlet.class, property = { ServletResolverConstants.SLING_SERVLET_PATHS + "=/bin/healthcheck", ServletResolverConstants.SLING_SERVLET_METHODS + "=" + HttpConstants.METHOD_GET }) public class HealthCheckServlet{ ... } How can the developer use the Apache Felix Web OSGi console to disable the servlet?

Options

  • ASelect the Services tab > Check that the OSGi component is listed > Click disable Action
  • BSelect the Bundle Resource Provider tab > Check that the OSGi component is listed > Click
  • CSelect the Components tab > Check that the OSGi component is listed > Click disable Action
  • DSelect the Configuration tab > Find the OSGi component > Click disable Action button

How the community answered

(31 responses)
  • A
    10% (3)
  • B
    6% (2)
  • C
    81% (25)
  • D
    3% (1)

Topics

#OSGi components#Felix Web Console#Sling servlet#component management

Community Discussion

No community discussion yet for this question.

Full AD0-E128 Practice