开发者

Passing Java arguments to bundle under Equinox OSGI framework?

I our application we have several bundles that are running by the Equinox OSGI framework (with Tomcat).

Currently we are passing the application configuration mostly by Java system properties. This properties are shared across all bundles and all of them can access to the properties value.

We are trying to find other option to pass them so only a specific bundle could access a specific property.

Is there a way to do it by a Java arguments? How can i pass a java argument to 开发者_StackOverflow社区a specific bundle?


You should have a look at the Config Admin service, it is designed for this use case, providing specific bundles with configuration information. Apache Felix File Install provides a convenient mechanism to supply configuration data through property files. Probably Equinox has something similar, but felix file install should run on Equinox.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜