내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

OSGI service

Avatar

Level 2

How to use customize parameter instead of URI in osgi service

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

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10
6 답변 개

Avatar

Level 10

Can you explain your use case in more detail please?

Avatar

Level 10

Hi,

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

~Ratna Kumar.

Avatar

Level 2

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.

Avatar

Level 2

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?

Avatar

Level 2

Thanks for the response.

How to use @property in this case?

Avatar

정확한 답변 작성자:
Level 10