You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jeff Yu (JIRA)" <ji...@apache.org> on 2008/03/24 17:49:32 UTC

[jira] Created: (SMX4KNL-25) Feature commands enhancement.

Feature commands enhancement.
-----------------------------

                 Key: SMX4KNL-25
                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
             Project: ServiceMix Kernel
          Issue Type: Improvement
    Affects Versions: 1.0-m3
            Reporter: Jeff Yu
             Fix For: 1.0-m3


When I saw the instruction for installing the NMR feature from the <a href="http://servicemix.apache.org/SMX4NMR/1-quick-start.html">User Guide</a>. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or <a href="http://linux.duke.edu/projects/yum/">yum</a> utility in the Fedora distro.

Put it simply, right now what we need to install an NMR feature is:
<pre>
   features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
   nmr
</pre>

and what I like is that we can do it like this:

<pre>
   features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
   features install nmr
</pre>

and then we can extend following commands:
  features upgrade nmr
  features remove nmr
  features list (for browsing all available features in the repository).

in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.



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


[jira] Resolved: (SMX4KNL-25) Feature commands enhancement.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SMX4KNL-25.
------------------------------------

      Assignee: Guillaume Nodet
    Resolution: Fixed

install / uninstall now works, but we don't really handle versionning yet

> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>            Assignee: Guillaume Nodet
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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


[jira] Commented: (SMX4KNL-25) Feature commands enhancement.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41843#action_41843 ] 

Guillaume Nodet commented on SMX4KNL-25:
----------------------------------------

{quote}
yeah, I think we need to version the features. as it can give users ability to install a specific version of that feature, I don't know whether it will cause problems if we add this version attribute?
{quote}

I don't see any problems to that.  i agree we should keep the version somewhere so that we can upgrade features easily.

{quote}
Another thing I saw is that now when we release a feature, take NMR as an example, we release this features url along with. I am thinking that we can update the "http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features.xml" xml file when we finish a release. So instead of asking users to add/update a feature url, users can get the released features automatically, and then can upgrade or keep it as what they want.
{quote}

Yeah, I forgot to update the features.xml I think.  I used a single file somewhere while it was not officially released, but it should go in the main features.xml.

{quote}
Currently, there is a problem for adding feature url is that after I reboot the kernel, I can't see any updated/added feature url, since it has not been kept in the file system.
{quote}

True.  We could easily use the preferences services to store such data.  It will also be needed to be able to persist which features/versions have been installed so that you can uninstall / upgrade those.  The preferences services is needed for the NMR anyway, so it makes sense to include it in the kernel by default I suppose.

{quote}
A big feature xml file might not a good idea, but my concern is that for users, mostly, they just need to know the one smx features repository url, and then don't need to update it most of time. but maybe we can split one big smx features into several xml fragment, but it should be transparent for users.
{quote}

Good idea.  What about adding a <repository url="xxx" /> element in the  <features> element that would be imported when parsed ?

{quote}
I am not sure about the command proxy? do you mean "nmr", this sort of command??
{quote}

Well, once you add a repository xml file, for each feature, a command is created.  This command does nothing but when launched, prompts the user to install this feature.  I'm thinking it makes more sense to let the users list the available features aso ...

Btw, I will commit my pending modifications.  If you want to continue working on those, tell me so that we don't overlap.


> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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


[jira] Commented: (SMX4KNL-25) Feature commands enhancement.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41966#action_41966 ] 

Guillaume Nodet commented on SMX4KNL-25:
----------------------------------------

Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/FeaturesServiceImpl.java
Transmitting file data .
Committed revision 643885.

> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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


[jira] Commented: (SMX4KNL-25) Feature commands enhancement.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41951#action_41951 ] 

Guillaume Nodet commented on SMX4KNL-25:
----------------------------------------

Add feature dependency handling, use the preferences service to persist the repository URLs and list of installed features.
Also, check if a bundle is already installed before installing it to avoid exceptions.

Sending        trunk/gshell/gshell-features/src/main/java/org/apache/servicemix/gshell/features/Feature.java
Sending        trunk/gshell/gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/FeatureImpl.java
Sending        trunk/gshell/gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/FeaturesServiceImpl.java
Sending        trunk/gshell/gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/RepositoryImpl.java
Transmitting file data ....
Committed revision 643395.

> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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


[jira] Commented: (SMX4KNL-25) Feature commands enhancement.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41776#action_41776 ] 

Guillaume Nodet commented on SMX4KNL-25:
----------------------------------------

Agreed.  I had began working on that last week but did not go very far yet.
The upgrade is a good idea, but we'd have to version the features, which means adding an attribute in the xml file for the version.

I was also thinking that we could remove the command proxy.  I'm not sure if this is a really good idea and I'm thinking it is better to have an explicit installation.

> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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


[jira] Commented: (SMX4KNL-25) Feature commands enhancement.

Posted by "Jeff Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41804#action_41804 ] 

Jeff Yu commented on SMX4KNL-25:
--------------------------------

Great. ;-)

yeah, I think we need to version the features.  as it can give users ability to install a specific version of that feature, I don't know whether it will cause problems if we add this version attribute?

Another thing I saw is that now when we release a feature, take NMR as an example, we release this features url along with. I am thinking that we can update the "http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features.xml" xml file when we finish a release. So instead of asking users to add/update a feature url, users can get the released features automatically, and then can upgrade or keep it as what they want.

Currently, there is a problem for adding feature url is that after I reboot the kernel, I can't see any updated/added feature url, since it has not been kept in the file system. 

A big feature xml file might not a good idea, but my concern is that for users, mostly, they just need to know the one smx features repository url, and then don't need to update it most of time. but maybe we can split one big smx features into several xml fragment, but it should be transparent for users.

I am not sure about the command proxy? do you mean "nmr", this sort of command??

 

> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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


[jira] Updated: (SMX4KNL-25) Feature commands enhancement.

Posted by "Jeff Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Yu updated SMX4KNL-25:
---------------------------

    Description: 
When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.

Put it simply, right now what we need to install an NMR feature is:
<pre>
   features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
   nmr
</pre>

and what I like is that we can do it like this:

<pre>
   features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
   features install nmr
</pre>

and then we can extend following commands:
  features upgrade nmr
  features remove nmr
  features list (for browsing all available features in the repository).

in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.



  was:
When I saw the instruction for installing the NMR feature from the <a href="http://servicemix.apache.org/SMX4NMR/1-quick-start.html">User Guide</a>. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or <a href="http://linux.duke.edu/projects/yum/">yum</a> utility in the Fedora distro.

Put it simply, right now what we need to install an NMR feature is:
<pre>
   features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
   nmr
</pre>

and what I like is that we can do it like this:

<pre>
   features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
   features install nmr
</pre>

and then we can extend following commands:
  features upgrade nmr
  features remove nmr
  features list (for browsing all available features in the repository).

in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.




> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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


[jira] Commented: (SMX4KNL-25) Feature commands enhancement.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41848#action_41848 ] 

Guillaume Nodet commented on SMX4KNL-25:
----------------------------------------

Sending        gshell-features/pom.xml
Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/Feature.java
Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/FeaturesService.java
Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/Repository.java
Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/CommandProxy.java
Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/FeatureImpl.java
Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/FeaturesServiceImpl.java
Sending        gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/RepositoryImpl.java
Adding         gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/commands/InstallFeatureCommand.java
Adding         gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/commands/ListFeaturesCommand.java
Adding         gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/commands/RefreshUrlCommand.java
Adding         gshell-features/src/main/java/org/apache/servicemix/gshell/features/internal/commands/UninstallFeatureCommand.java
Sending        gshell-features/src/main/resources/META-INF/spring/gshell-features.xml
Transmitting file data .............
Committed revision 641892.

Lots of blank areas to fill.

Are you interested in working on the uninstall / upgrade bit ?

> Feature commands enhancement.
> -----------------------------
>
>                 Key: SMX4KNL-25
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-25
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>    Affects Versions: 1.0-m3
>            Reporter: Jeff Yu
>             Fix For: 1.0-m3
>
>
> When I saw the instruction for installing the NMR feature from the User Guide. I think it makes us really easir to install it rather than to copy all the jars into the deploy folder manually. and suddenly, it occurs to me that this is very similar to "apt-get" utility in Ubuntu or "yum" utility in the Fedora distro.
> Put it simply, right now what we need to install an NMR feature is:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    nmr
> </pre>
> and what I like is that we can do it like this:
> <pre>
>    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xml
>    features install nmr
> </pre>
> and then we can extend following commands:
>   features upgrade nmr
>   features remove nmr
>   features list (for browsing all available features in the repository).
> in this way, we should be easily to install/remove the features, and users wouldn't need to consider the dependency issues.

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