osgi-jax-rs-connector is not in use anymore in AEM6.5 | Community
Skip to main content
New Participant
June 6, 2023
Solved

osgi-jax-rs-connector is not in use anymore in AEM6.5

  • June 6, 2023
  • 1 reply
  • 945 views
I am trying to expose Restful Services in AEM6.5.I am using jersey-all-2.22.2,publisher-5.3.1,provider-security-2.2 API.

I am getting "HTTP ERROR 503 Jersey is not ready yet!". Find screenshot1 is attached for the same.

 But looks like osgi-jax-rs-connector part of jersey is not in use anymore. https://github.com/hstaudacher/osgi-jax-rs-connector

Find screenshot2 is attached for the same.

What is the alternative API, alternative OSGI-REST Connector which can be used instead of osgi-jax-rs-connector in AEM6.5

Thanks,

Gana

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ManviSharma

Hi,

 

In AEM 6.5, the recommended alternative to the osgi-jax-rs-connector for exposing RESTful services is the Adobe Granite REST API, which is built-in and does not require an external connector. It leverages AEM's Sling framework and allows you to define and implement RESTful services directly within AEM using scripts, servlets, or Java classes.

 

Reference docs[1]

[1]

https://experienceleague.adobe.com/docs/experience-manager-screens/user-guide/developing/rest-api.html?lang=en

 

1 reply

ManviSharma
ManviSharmaAccepted solution
Employee
June 6, 2023

Hi,

 

In AEM 6.5, the recommended alternative to the osgi-jax-rs-connector for exposing RESTful services is the Adobe Granite REST API, which is built-in and does not require an external connector. It leverages AEM's Sling framework and allows you to define and implement RESTful services directly within AEM using scripts, servlets, or Java classes.

 

Reference docs[1]

[1]

https://experienceleague.adobe.com/docs/experience-manager-screens/user-guide/developing/rest-api.html?lang=en

 

GanaGAuthor
New Participant
June 7, 2023

Hi,

By using Adobe Granite REST API, can we have custom paths other than default path "api". Find the screenshot attached for reference.

Also, can we have java method level services exposed similar to what we can achieve with osgi-jax-rs-connector?

Is Adobe Granite REST API uses sling exporter approach to expose the RESTful services?