开发者

Passing Java arguments to bundle under Equinox OSGI framework?

开发者 https://www.devze.com 2023-03-15 10:17 出处:网络
I our application we have several bundles that are running by the Equinox OSGI framework (with Tomcat).

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

精彩评论

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