什麼是修補OSGi容器的適當機制。OSGi應用程序修補策略
1) Should the bundles (binaries/jars) have the same name as the old ones then:
a. Replace the bundle with the with the new bundle (manifest has been
modified to reflect the new version) in the plug-ins folder and,
b. Invoke update <bundle id> <bundle name>.
2) Or Should the bundles have version information encoded in the file name
a. Copy the new bundle to the plug-ins folder
b. Invoke update <bundle id> file:plugins/<new Bundle name>
3) Or other alternatives, possibly an OBR (not sure of the pros and cons) also
we may be constrained by the amount of work involved in retrofitting an OBR.
有一兩件事我注意到的是,在某些情況下,一個包文件(貌似改名JAR)下的特定包的「數據根」被創建。這種情況在所有情況下都會在更新被調用時發生,或者僅在特定情況下發生。
有沒有關於上述的建議,優點,缺點等。還是有更好的選擇?基本上我的想法是,將原始二進制文件替換爲補丁二進制代碼會很好,這是從OSGi上下文的一個好主意嗎?
我們使用的是Equinox OSGi容器。
乾杯,