Skip to main content
andreyc30271024
Oct 16, 2015 2:27 AM UTC
Solved

My custom service is not visible in "Services", "Components" tabs.

Hey. My problem is:

 

I've deployed my service successfully. "Services" bundle is active, I can call methods from my deployed service without any problems, but I cant see it in "Services" and "Components" tabs in my Felix OSGi Console. What should I do to make it visible in the "Service", "Components" tabs?

 

The code of my service.

 

@Component(immediate = true)
@Service(value = GoodbyeWorldService.class)  
    public class GoodbyeWorldService {
        @Reference
        protected Scheduler scheduler;
        private final static Logger LOGGER = LoggerFactory.getLogger(GoodbyeWorldService.class);
       
        public void get() {
           LOGGER.info("Scheduler is " + this.scheduler);
       } 
    }
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

Follow this AEM article - as shown in the article - you will see the service in the Service tab -- as shown here.

[img]FelixBundleService.png[/img]

See:

Querying Adobe Experience Manager Data using the JCR API

(PS -- this one is an advanced article using JQuery, a custom OSGi that uses JCR API, etc.)

For those reading this thread and want an easier service to start with -- see this article:

Creating your first AEM Service using an Adobe Maven Archetype project

3 replies

Oct 16, 2015 2:27 AM UTC

Thanx Smacdonald

Bioderma

Translate
smacdonald2008
Level 10
Oct 16, 2015 2:27 AM UTC

Can you please describe how you created the OSGi bundle? What CQ version are you using?

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

Follow this AEM article - as shown in the article - you will see the service in the Service tab -- as shown here.

[img]FelixBundleService.png[/img]

See:

Querying Adobe Experience Manager Data using the JCR API

(PS -- this one is an advanced article using JQuery, a custom OSGi that uses JCR API, etc.)

For those reading this thread and want an easier service to start with -- see this article:

Creating your first AEM Service using an Adobe Maven Archetype project

Translate