geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-4921) Use OSGI's way to manage the server repository
Date Tue, 27 Oct 2009 03:26:59 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770368#action_12770368
] 

Ivan commented on GERONIMO-4921:
--------------------------------

I agree that use a unique url style is better, and mvn url is truely a good choice, but the
question is that Felix has different strategy depending on the url styles. Internally, it
supports three url styles : reference:file, file, inputstream, it only uses the file link
(not copy bundles to the cache folder) while the location is of reference:file style.  Currently,
when Geronimo is started, the mvn url is used, then Felix will copy the bundle from inputstream
to its cache folder. So far, I did not see a way to make both mvn url and reference file active.

We may have a better way to check whether the bundle is installed, since we only use mvn style
url now, we could directly call the install the bundle and depending on the state of the returned
bundle object, we could decide whether or not need to call the start action.

If we use different url style to disable the cache function in the future, we may need other
ways to find whether corresponding bundle is installed or not, to keep a installed artifact
list is one of the choices. Another side, we may need a flag in the META-INF of the bundles
to decide which style will be used (Copy Or Not Copy). From some discussion of Felix forum,
while using the file reference style, there will be some problems about loading native libraries.


Any comment ?

> Use OSGI's way to manage the server repository
> ----------------------------------------------
>
>                 Key: GERONIMO-4921
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4921
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: osgi
>    Affects Versions: 3.0
>            Reporter: Ivan
>             Fix For: 3.0
>
>
> Some install/uninstall action should be done via OSGI API  or Karaf functions more easily.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message