karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-201) Add post feature installation triggers
Date Mon, 06 Feb 2017 13:37:41 GMT

    [ https://issues.apache.org/jira/browse/KARAF-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854003#comment-15854003

Christian Schneider commented on KARAF-201:

What I wanted to express is that for each persistence technology you will have some central
resource that can provide a good hook for doing migration tasks. 
Karaf features are only used for the first start of karaf. If you restart karaf then there
is only the ordinary bundle startup. 
So I think it would not be a good practice to use the feature service at all for migration
scripts. Instead hook into the resources that channel access to your persistence layer and
make sure the migration is finished before the resource is made available to other bundles.

> Add post feature installation triggers
> --------------------------------------
>                 Key: KARAF-201
>                 URL: https://issues.apache.org/jira/browse/KARAF-201
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-core, karaf-feature
>            Reporter: Guillaume Nodet
>             Fix For: 4.1.1
> Something like:
> {code}
> <script trigger="post">
>     // do anything using gogo commands
> </script>
> {code}
> The result could be displayed to the user so that the installation could give him some
information (manual steps, or whatever), though it may need a separate element.

This message was sent by Atlassian JIRA

View raw message