[
https://issues.apache.org/jira/browse/KARAF-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040135#comment-13040135
]
Jean-Baptiste Onofré commented on KARAF-657:
--------------------------------------------
Kar artifact and bundle is not the same.
A Kar artifact should be seen as a features:descriptor.
When you drop a features descriptor into the deploy folder, or register a
features descriptor using features:addurl command, no feature is started
automatically. You have to start feature by hand.
It could make sense to be able to define a set of auto-start features in the
etc/org.apache.karaf.features.cfg file.
For instance, we could have a property like:
features.auto.start = myfeature1, myfeature2, myfeature3/version
When a features descriptor is registered (using features:addurl), Karaf could
check if the features descriptor contain features defined in
features.auto.start, and try to start it automatically.
Another way, could be to add autostart attribute in the features descriptor:
<feature name="myfeature" version="1.0" autostart="true"/>
Let discuss of that on the mailing list.
> kar deployer should start the feature
> -------------------------------------
>
> Key: KARAF-657
> URL: https://issues.apache.org/jira/browse/KARAF-657
> Project: Karaf
> Issue Type: New Feature
> Affects Versions: 2.2.1
> Reporter: Dan Tran
> Assignee: Jean-Baptiste Onofré
>
> When a bundle is dropped at deploy directory, it starts automatically. Would
> that be same par to get a kar file to behave the same?
> detailed discussion is at
> http://karaf.922171.n3.nabble.com/auto-install-feature-using-kar-deployer-td2969728.html
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira