I am working on a project in which I used Adobe CQ5.
In the mean while I have to use background service in my class i.e., SlingRepository.
For that I used Reference Annotation
@Reference
protected SlingRepository repository;
When I deploy this bundle in OSGI container, it does not able to use this service, it gives null exception.
Can you tell me please where I am wrong ?
I am totally stuck here.