geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5786) The double refresh problem with EBAs
Date Wed, 09 Feb 2011 07:49:57 GMT


David Jencks commented on GERONIMO-5786:

The osgi spec 3.6 says

The following list defines the preferences, if multiple choices are possible, in order of
decreasing priority:
•	A resolved exporter must be preferred over an unresolved exporter. 
•	An exporter with a higher version is preferred over an exporter with a
lower version. 
•	An exporter with a lower bundle ID is preferred over a bundle with a
higher ID.

In my experiments so far these seem to be followed.  No package exports have versions.  I
created a bundle with the same symbolic name as the one in the eba and a higher bundle version.
 When deployed it had a higher bundle id than the bundle from the eba.  In order to get resolve
to pick up the new bundle I had to uninstall the eba's bundle with the lower bundle id.

Next I will try using a export package version.

> The double refresh problem with EBAs
> ------------------------------------
>                 Key: GERONIMO-5786
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: osgi
>    Affects Versions: 3.0-M2, 3.0
>            Reporter:
>            Priority: Minor
>             Fix For: 3.0-M2, 3.0
> - deploy an EBA: A@1.0.0 = WAB@1.0.0 + bundle@1.0.0
> - add bundle v1.0.1 via osgi:install bundle@1.0.1
> My expectation was that if I did osgi:refresh [WAB] it would re-resolve and pick up the
new bundle (1.0.1). Instead, I find that I need to do osgi:refresh TWICE for it to pick up
the new bundle version! 
> If the WAB was deployed as a standalone entity outside EBA, then it takes only one osgi:refresh
for it to pick up the new dependent bundle version...

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message