Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

How to expose Restful Services through JAX-RS(Jersey) in AEM | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

How to expose Restful Services through JAX-RS(Jersey) in AEM by TechForum

Abstract

JAX-RS is a specification that provides portable API’s for developing, exposing and accessing web applications designed and implemented in compliance with principals of REST architectural style.

JAX-RS has annotations to bind specific URI patterns and HTTP methods to individual methods of your Java code. AEM is driven based on REST principals but there is no direct support for creating Restful services.

There are multiple implementations for JAX-RS specifications, this tutorial explains exposing REST based services in AEM through Jersey.

Install JAX-RS Jersey modules
As a first step, install the JAX-RS Jersey connector to AEM server
The connector modules can be downloaded from the following URL — https://search.maven.org/search?q=g:com.eclipsesource.jaxrs, the required modules are jersey-all, publisher and provider-gson

Read Full Blog

How to expose Restful Services through JAX-RS(Jersey) in AEM

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Level 2

Hi

 

I have deployed the sample repo in AEM Cloud, but the service path throws 503 error.

Also i have checked the following - jersey-all, publisher in developer console. The message is its not exported by any bundle.

I am not understanding how to make this work.

Avatar

Administrator

@chandrakanthim , I have asked the author of this blog to review your Q and assist you here.



Kautuk Sahni