felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Kriens (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-938) FileInstall starts a stopped bundles even if it is stopped transiently by user
Date Fri, 20 Feb 2009 09:55:02 GMT

    [ https://issues.apache.org/jira/browse/FELIX-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675303#action_12675303

Peter Kriens commented on FELIX-938:

Same comments as in other bug report. I think you do not use File Install as intended. The
primary idea of FI was that you have a directory and what is in there is running in your system.
If it fails for some reason, you attempt to start it again. The advantage of this model is
that you can incrementally drop bundles in there until you get no more errors. I think it
is very confusing that there is a bundle in the watched directory and it is not started.

So whatever you do, please do not change the original behavior. I have no problem if you add
some configuration flag for a directory that is watched that it should not attempt to start
it, but I would not like to loose the current behavior. Are you sure you need File Install?
It sounds more that you want a method to just install and start bundles from a directory and
get going?

> FileInstall starts a stopped bundles even if it is stopped transiently by user
> ------------------------------------------------------------------------------
>                 Key: FELIX-938
>                 URL: https://issues.apache.org/jira/browse/FELIX-938
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>         Environment: generic
>            Reporter: Sahoo
> Configure File Install to watch a directory. Add some bundles there. File Install will
install and start them. Now, using Felix shell or some other utility, stop one of these bundles,
wait for File Install to loop again. You shall notice that File Install will start the bundle
again. I think this behavior is not desirable. if user has explicitly stopped a bundle, why
should File Install start it immediately? In act, there is no way to stop a bundle other than
removing it from watched directory. Removing a bundle from watched dir may not always be practical
because of file system permission issues. So, I think File Install should not automatically
restart a stopped bundle, at least not in the same framework instance.

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

View raw message