You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by cmoulliard <cm...@gmail.com> on 2009/03/17 10:38:39 UTC
Suggestion : warn user in the console/log when bundle(s) declared
in the features.xml file are not retrieved
Hi,
I would like to suggest the following improvement for our users about the
features mechanism available under SMX 4.
Using the file org.apache.servicemix.features.cfg, a user can provide in an
features.xml file the bundles that he/she wants to deploy on SMX4 server. If
during the installation process of the bundles defined in the features.xml
file, a bundle cannot be retrieved (due to network problem with the maven
repository, because the name of the bundle is wrong, ...) for different
reasons, the installation process stops. If by example, three features have
been declared : cxf,camel and hibernate and something happens during the
installation of the cxg, than nothing will be installed for camel and
hibernate.
Suggestion : Warn the user on the console + LOG that features installation
has failed due to
- bundles missing, OR
- wrong bundles, OR
- ...
This small modification will help users to better understand How SMX4 works
with features provisioning system :-)
Regards,
-----
Charles Moulliard
SOA Architect
My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
--
View this message in context: http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22555455.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Suggestion : warn user in the console/log when bundle(s) declared
in the features.xml file are not retrieved
Posted by Guillaume Nodet <gn...@gmail.com>.
ServiceMix Kernel 1.1.0 should be announced shortly.
For 1.3.0, I guess we'll upgrade to 1.2.0 but we can upgrade to rc1 on
1.3.0-SNAPSHOT asap.
https://issues.apache.org/activemq/browse/SMX4KNL-175 should be able to
track this issue.
2009/3/17 cmoulliard <cm...@gmail.com>
>
> Ticket created : https://issues.apache.org/activemq/browse/SMX4KNL-245
>
> Are you going to create a ticket to move to Spring DM 1.2-rc1 or this is
> not
> necessary ?
>
>
> gnodet wrote:
> >
> > 2009/3/17 cmoulliard <cm...@gmail.com>
> >
> >>
> >> I will create the ticket in JIRA. If I found time next week, I will have
> >> a
> >> look on that but I'm busy now with the redaction of the second part of
> my
> >> tutorial about SMX4 and Camel (here is the link of the first part :
> >> http://cwiki.apache.org/CAMEL/tutorial-osgi-camel-part1.html) + issue
> >> with
> >> camel-cxf. I would like to finalize it this week.
> >>
> >> Interesting what you suggest Guillaume. But one potential risk with the
> >> deploy folder concerns the moment at which the features or spring.xml
> >> files
> >> are loaded by SMX 4 during startup. I'm not really sure that SMX4 loads
> >> the
> >> content of the deploy folder after having loaded all the bundles defined
> >> in
> >> the startup.properties and config file of feature.cfg !!
> >
> >
> > If the features list the required dependencies, it should work without
> > much
> > problems, but you're right, if some dependencies are missing, it could be
> > a
> > problem.
> >
> >
> >>
> >>
> >> Remark : I have integrated SMX4 kernel yesterday with Spring DM 1.2-rc1.
> >> Everything seems to work correctly. I have done this by changing the
> name
> >> of
> >> the jar in the startup.properties file.
> >>
> >
> > Good, I haven't had any time to try. I was mostly concerned about the
> > change they made to register spring xml handlers when bundles are started
> > instead of resolved.
> >
> >
> >>
> >>
> >>
> >> gnodet wrote:
> >> >
> >> > Sounds good. Please raise a JIRA on SMX4KNL.
> >> > If you want, we'd be more than happy to accept a patch ;-)
> >> >
> >> > Anyway, not sure if you are aware, but I have recently added another
> >> way
> >> > to
> >> > deploy features, which is to drop a feature descriptor in the deploy
> >> > folder. All the features listed will be installed.
> >> > You can find an example in
> >> >
> >> >
> >>
> https://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/examples/cluster/instances/smx1/deploy/cluster.xml
> >> > As you can see, it mostly refers to existing features and does not
> >> > redefine
> >> > the features.
> >> >
> >> > 2009/3/17 cmoulliard <cm...@gmail.com>
> >> >
> >> >>
> >> >> Hi,
> >> >>
> >> >> I would like to suggest the following improvement for our users about
> >> the
> >> >> features mechanism available under SMX 4.
> >> >>
> >> >> Using the file org.apache.servicemix.features.cfg, a user can provide
> >> in
> >> >> an
> >> >> features.xml file the bundles that he/she wants to deploy on SMX4
> >> server.
> >> >> If
> >> >> during the installation process of the bundles defined in the
> >> >> features.xml
> >> >> file, a bundle cannot be retrieved (due to network problem with the
> >> maven
> >> >> repository, because the name of the bundle is wrong, ...) for
> >> different
> >> >> reasons, the installation process stops. If by example, three
> features
> >> >> have
> >> >> been declared : cxf,camel and hibernate and something happens during
> >> the
> >> >> installation of the cxg, than nothing will be installed for camel and
> >> >> hibernate.
> >> >>
> >> >> Suggestion : Warn the user on the console + LOG that features
> >> >> installation
> >> >> has failed due to
> >> >> - bundles missing, OR
> >> >> - wrong bundles, OR
> >> >> - ...
> >> >>
> >> >> This small modification will help users to better understand How SMX4
> >> >> works
> >> >> with features provisioning system :-)
> >> >>
> >> >> Regards,
> >> >>
> >> >>
> >> >>
> >> >> -----
> >> >> Charles Moulliard
> >> >> SOA Architect
> >> >>
> >> >> My Blog : http://cmoulliard.blogspot.com/
> >> >> http://cmoulliard.blogspot.com/
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22555455.html
> >> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Cheers,
> >> > Guillaume Nodet
> >> > ------------------------
> >> > Blog: http://gnodet.blogspot.com/
> >> > ------------------------
> >> > Open Source SOA
> >> > http://fusesource.com
> >> >
> >> >
> >>
> >>
> >> -----
> >> Charles Moulliard
> >> SOA Architect
> >>
> >> My Blog : http://cmoulliard.blogspot.com/
> >> http://cmoulliard.blogspot.com/
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22556492.html
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
> >
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22556838.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: Suggestion : warn user in the console/log when bundle(s)
declared in the features.xml file are not retrieved
Posted by cmoulliard <cm...@gmail.com>.
Ticket created : https://issues.apache.org/activemq/browse/SMX4KNL-245
Are you going to create a ticket to move to Spring DM 1.2-rc1 or this is not
necessary ?
gnodet wrote:
>
> 2009/3/17 cmoulliard <cm...@gmail.com>
>
>>
>> I will create the ticket in JIRA. If I found time next week, I will have
>> a
>> look on that but I'm busy now with the redaction of the second part of my
>> tutorial about SMX4 and Camel (here is the link of the first part :
>> http://cwiki.apache.org/CAMEL/tutorial-osgi-camel-part1.html) + issue
>> with
>> camel-cxf. I would like to finalize it this week.
>>
>> Interesting what you suggest Guillaume. But one potential risk with the
>> deploy folder concerns the moment at which the features or spring.xml
>> files
>> are loaded by SMX 4 during startup. I'm not really sure that SMX4 loads
>> the
>> content of the deploy folder after having loaded all the bundles defined
>> in
>> the startup.properties and config file of feature.cfg !!
>
>
> If the features list the required dependencies, it should work without
> much
> problems, but you're right, if some dependencies are missing, it could be
> a
> problem.
>
>
>>
>>
>> Remark : I have integrated SMX4 kernel yesterday with Spring DM 1.2-rc1.
>> Everything seems to work correctly. I have done this by changing the name
>> of
>> the jar in the startup.properties file.
>>
>
> Good, I haven't had any time to try. I was mostly concerned about the
> change they made to register spring xml handlers when bundles are started
> instead of resolved.
>
>
>>
>>
>>
>> gnodet wrote:
>> >
>> > Sounds good. Please raise a JIRA on SMX4KNL.
>> > If you want, we'd be more than happy to accept a patch ;-)
>> >
>> > Anyway, not sure if you are aware, but I have recently added another
>> way
>> > to
>> > deploy features, which is to drop a feature descriptor in the deploy
>> > folder. All the features listed will be installed.
>> > You can find an example in
>> >
>> >
>> https://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/examples/cluster/instances/smx1/deploy/cluster.xml
>> > As you can see, it mostly refers to existing features and does not
>> > redefine
>> > the features.
>> >
>> > 2009/3/17 cmoulliard <cm...@gmail.com>
>> >
>> >>
>> >> Hi,
>> >>
>> >> I would like to suggest the following improvement for our users about
>> the
>> >> features mechanism available under SMX 4.
>> >>
>> >> Using the file org.apache.servicemix.features.cfg, a user can provide
>> in
>> >> an
>> >> features.xml file the bundles that he/she wants to deploy on SMX4
>> server.
>> >> If
>> >> during the installation process of the bundles defined in the
>> >> features.xml
>> >> file, a bundle cannot be retrieved (due to network problem with the
>> maven
>> >> repository, because the name of the bundle is wrong, ...) for
>> different
>> >> reasons, the installation process stops. If by example, three features
>> >> have
>> >> been declared : cxf,camel and hibernate and something happens during
>> the
>> >> installation of the cxg, than nothing will be installed for camel and
>> >> hibernate.
>> >>
>> >> Suggestion : Warn the user on the console + LOG that features
>> >> installation
>> >> has failed due to
>> >> - bundles missing, OR
>> >> - wrong bundles, OR
>> >> - ...
>> >>
>> >> This small modification will help users to better understand How SMX4
>> >> works
>> >> with features provisioning system :-)
>> >>
>> >> Regards,
>> >>
>> >>
>> >>
>> >> -----
>> >> Charles Moulliard
>> >> SOA Architect
>> >>
>> >> My Blog : http://cmoulliard.blogspot.com/
>> >> http://cmoulliard.blogspot.com/
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22555455.html
>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> > ------------------------
>> > Blog: http://gnodet.blogspot.com/
>> > ------------------------
>> > Open Source SOA
>> > http://fusesource.com
>> >
>> >
>>
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog : http://cmoulliard.blogspot.com/
>> http://cmoulliard.blogspot.com/
>> --
>> View this message in context:
>> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22556492.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
>
-----
Charles Moulliard
SOA Architect
My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
--
View this message in context: http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22556838.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Suggestion : warn user in the console/log when bundle(s) declared
in the features.xml file are not retrieved
Posted by Guillaume Nodet <gn...@gmail.com>.
2009/3/17 cmoulliard <cm...@gmail.com>
>
> I will create the ticket in JIRA. If I found time next week, I will have a
> look on that but I'm busy now with the redaction of the second part of my
> tutorial about SMX4 and Camel (here is the link of the first part :
> http://cwiki.apache.org/CAMEL/tutorial-osgi-camel-part1.html) + issue with
> camel-cxf. I would like to finalize it this week.
>
> Interesting what you suggest Guillaume. But one potential risk with the
> deploy folder concerns the moment at which the features or spring.xml files
> are loaded by SMX 4 during startup. I'm not really sure that SMX4 loads the
> content of the deploy folder after having loaded all the bundles defined in
> the startup.properties and config file of feature.cfg !!
If the features list the required dependencies, it should work without much
problems, but you're right, if some dependencies are missing, it could be a
problem.
>
>
> Remark : I have integrated SMX4 kernel yesterday with Spring DM 1.2-rc1.
> Everything seems to work correctly. I have done this by changing the name
> of
> the jar in the startup.properties file.
>
Good, I haven't had any time to try. I was mostly concerned about the
change they made to register spring xml handlers when bundles are started
instead of resolved.
>
>
>
> gnodet wrote:
> >
> > Sounds good. Please raise a JIRA on SMX4KNL.
> > If you want, we'd be more than happy to accept a patch ;-)
> >
> > Anyway, not sure if you are aware, but I have recently added another way
> > to
> > deploy features, which is to drop a feature descriptor in the deploy
> > folder. All the features listed will be installed.
> > You can find an example in
> >
> >
> https://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/examples/cluster/instances/smx1/deploy/cluster.xml
> > As you can see, it mostly refers to existing features and does not
> > redefine
> > the features.
> >
> > 2009/3/17 cmoulliard <cm...@gmail.com>
> >
> >>
> >> Hi,
> >>
> >> I would like to suggest the following improvement for our users about
> the
> >> features mechanism available under SMX 4.
> >>
> >> Using the file org.apache.servicemix.features.cfg, a user can provide in
> >> an
> >> features.xml file the bundles that he/she wants to deploy on SMX4
> server.
> >> If
> >> during the installation process of the bundles defined in the
> >> features.xml
> >> file, a bundle cannot be retrieved (due to network problem with the
> maven
> >> repository, because the name of the bundle is wrong, ...) for different
> >> reasons, the installation process stops. If by example, three features
> >> have
> >> been declared : cxf,camel and hibernate and something happens during the
> >> installation of the cxg, than nothing will be installed for camel and
> >> hibernate.
> >>
> >> Suggestion : Warn the user on the console + LOG that features
> >> installation
> >> has failed due to
> >> - bundles missing, OR
> >> - wrong bundles, OR
> >> - ...
> >>
> >> This small modification will help users to better understand How SMX4
> >> works
> >> with features provisioning system :-)
> >>
> >> Regards,
> >>
> >>
> >>
> >> -----
> >> Charles Moulliard
> >> SOA Architect
> >>
> >> My Blog : http://cmoulliard.blogspot.com/
> >> http://cmoulliard.blogspot.com/
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22555455.html
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
> >
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22556492.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: Suggestion : warn user in the console/log when bundle(s)
declared in the features.xml file are not retrieved
Posted by cmoulliard <cm...@gmail.com>.
I will create the ticket in JIRA. If I found time next week, I will have a
look on that but I'm busy now with the redaction of the second part of my
tutorial about SMX4 and Camel (here is the link of the first part :
http://cwiki.apache.org/CAMEL/tutorial-osgi-camel-part1.html) + issue with
camel-cxf. I would like to finalize it this week.
Interesting what you suggest Guillaume. But one potential risk with the
deploy folder concerns the moment at which the features or spring.xml files
are loaded by SMX 4 during startup. I'm not really sure that SMX4 loads the
content of the deploy folder after having loaded all the bundles defined in
the startup.properties and config file of feature.cfg !!
Remark : I have integrated SMX4 kernel yesterday with Spring DM 1.2-rc1.
Everything seems to work correctly. I have done this by changing the name of
the jar in the startup.properties file.
gnodet wrote:
>
> Sounds good. Please raise a JIRA on SMX4KNL.
> If you want, we'd be more than happy to accept a patch ;-)
>
> Anyway, not sure if you are aware, but I have recently added another way
> to
> deploy features, which is to drop a feature descriptor in the deploy
> folder. All the features listed will be installed.
> You can find an example in
>
> https://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/examples/cluster/instances/smx1/deploy/cluster.xml
> As you can see, it mostly refers to existing features and does not
> redefine
> the features.
>
> 2009/3/17 cmoulliard <cm...@gmail.com>
>
>>
>> Hi,
>>
>> I would like to suggest the following improvement for our users about the
>> features mechanism available under SMX 4.
>>
>> Using the file org.apache.servicemix.features.cfg, a user can provide in
>> an
>> features.xml file the bundles that he/she wants to deploy on SMX4 server.
>> If
>> during the installation process of the bundles defined in the
>> features.xml
>> file, a bundle cannot be retrieved (due to network problem with the maven
>> repository, because the name of the bundle is wrong, ...) for different
>> reasons, the installation process stops. If by example, three features
>> have
>> been declared : cxf,camel and hibernate and something happens during the
>> installation of the cxg, than nothing will be installed for camel and
>> hibernate.
>>
>> Suggestion : Warn the user on the console + LOG that features
>> installation
>> has failed due to
>> - bundles missing, OR
>> - wrong bundles, OR
>> - ...
>>
>> This small modification will help users to better understand How SMX4
>> works
>> with features provisioning system :-)
>>
>> Regards,
>>
>>
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog : http://cmoulliard.blogspot.com/
>> http://cmoulliard.blogspot.com/
>> --
>> View this message in context:
>> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22555455.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
>
-----
Charles Moulliard
SOA Architect
My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
--
View this message in context: http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22556492.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Suggestion : warn user in the console/log when bundle(s) declared
in the features.xml file are not retrieved
Posted by Guillaume Nodet <gn...@gmail.com>.
Sounds good. Please raise a JIRA on SMX4KNL.
If you want, we'd be more than happy to accept a patch ;-)
Anyway, not sure if you are aware, but I have recently added another way to
deploy features, which is to drop a feature descriptor in the deploy
folder. All the features listed will be installed.
You can find an example in
https://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/examples/cluster/instances/smx1/deploy/cluster.xml
As you can see, it mostly refers to existing features and does not redefine
the features.
2009/3/17 cmoulliard <cm...@gmail.com>
>
> Hi,
>
> I would like to suggest the following improvement for our users about the
> features mechanism available under SMX 4.
>
> Using the file org.apache.servicemix.features.cfg, a user can provide in an
> features.xml file the bundles that he/she wants to deploy on SMX4 server.
> If
> during the installation process of the bundles defined in the features.xml
> file, a bundle cannot be retrieved (due to network problem with the maven
> repository, because the name of the bundle is wrong, ...) for different
> reasons, the installation process stops. If by example, three features have
> been declared : cxf,camel and hibernate and something happens during the
> installation of the cxg, than nothing will be installed for camel and
> hibernate.
>
> Suggestion : Warn the user on the console + LOG that features installation
> has failed due to
> - bundles missing, OR
> - wrong bundles, OR
> - ...
>
> This small modification will help users to better understand How SMX4 works
> with features provisioning system :-)
>
> Regards,
>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://www.nabble.com/Suggestion-%3A-warn-user-in-the-console-log-when-bundle%28s%29-declared-in-the-features.xml-file-are-not-retrieved-tp22555455p22555455.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com