Expand my Community achievements bar.

SOLVED

Using Jersey Rest web services in CQ

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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


 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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