OSGI service | Community
Skip to main content
Level 2
July 9, 2018
Solved

OSGI service

  • July 9, 2018
  • 6 replies
  • 2428 views

How to use customize parameter instead of URI in osgi service

example :-  protected static final String TEMPLATE = "/apps/example/templates/sampletemplate";

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 smacdonald2008

See this AEM HELPX Article:  Reading OSGi Configuration Values for Adobe Experience Manager 6.3

6 replies

smacdonald2008
Level 10
July 9, 2018

Can you explain your use case in more detail please?

Ratna_Kumar
Level 10
July 9, 2018

Hi,

Can you explain your exact use case, so that further we can help you.

~Ratna Kumar.

Level 2
July 10, 2018

example :-  protected static final String TEMPLATE = "/apps/example/templates/sampletemplate";

"/apps/example/templates/sampletemplate"----this value I need to get from service by configuring the service with default value.

How to do configuration in service to set the default value.

Thanks for the response.

Level 2
July 10, 2018

In an OSGI service, You can do the configuration at osgi console for that u need to make your service configuration by setting attribute metatype true in a @component annotation and define the configurable fields

osgi component metatype service data use?

Level 2
July 10, 2018

Thanks for the response.

How to use @property in this case?

smacdonald2008
smacdonald2008Accepted solution
Level 10
July 10, 2018