Using Jersey Rest web services in CQ | Community
Skip to main content
NBertie
Level 2
October 16, 2015
Solved

Using Jersey Rest web services in CQ

  • October 16, 2015
  • 2 replies
  • 772 views

Hi All,

Need pointers on how to implement Jersey REST services from within a CQ service. Is there a way to tell CQ that for urls like /rest/* go to Jersey servlet dispatchers so that all the methods annotated using Jersey annotation are called?

Thanks in advance,

Nitin

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 Sham_HC

In Sling servlet in CQ5 you can't have a servlets on wildcard urls instead make use of sling.servlet.selectors Or you should go with felix http service. I would recommend to go with sling.servlet.selectors 

http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html


 

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

In Sling servlet in CQ5 you can't have a servlets on wildcard urls instead make use of sling.servlet.selectors Or you should go with felix http service. I would recommend to go with sling.servlet.selectors 

http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html


 

NBertie
NBertieAuthor
Level 2
October 16, 2015

Thanks Sham. This helps