OSGI service | Community
Skip to main content
Level 2
Jul 9, 2018 10:50 AM UTC
Solved

OSGI service

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.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jul 10, 2018 9:37 PM UTC

6 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Jul 10, 2018 9:37 PM UTC
Level 2
Jul 10, 2018 10:52 AM UTC

Thanks for the response.

How to use @property in this case?

Translate
Level 2
Jul 10, 2018 6:50 AM UTC

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?

Translate
Level 2
Jul 10, 2018 6:37 AM UTC

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.

Translate
Ratna_Kumar
Level 10
Jul 9, 2018 2:18 PM UTC

Hi,

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

~Ratna Kumar.

Translate
smacdonald2008
Level 10
Jul 9, 2018 1:59 PM UTC

Can you explain your use case in more detail please?

Translate