Re: Installing Camel examples in Karaf

2013-05-20 Thread Babak Vahdat
O.K. I found how to make this OSGi craft work: karaf@root> features:addUrl mvn:org.apache.camel/camel-example-osgi/2.12-SNAPSHOT/xml/features karaf@root> features:install camel-example-osgi karaf@root> log:tail 2013-05-20 12:17:08,537 | INFO | timer://myTimer | MyTransform

Re: Installing Camel examples in Karaf

2013-05-19 Thread Babak Vahdat
Am 18.05.13 23:00 schrieb "Babak Vahdat" unter : >Hi Guillaume, > >I just found your post below as I was playing with the installation of a >Camel example (camel-example-osgi on the master branch) into Karaf 2.3.1 >and >hope you could tell me where I'm going wrong here. Yes dropping >features.xm

Re: Installing Camel examples in Karaf

2013-05-18 Thread Babak Vahdat
Hi Guillaume, I just found your post below as I was playing with the installation of a Camel example (camel-example-osgi on the master branch) into Karaf 2.3.1 and hope you could tell me where I'm going wrong here. Yes dropping features.xml into the deploy folder would work (beforehand one should

Re: Installing Camel examples in Karaf

2013-01-26 Thread Charles Moulliard
Indeed. This is not until now possible if the features file is embedded in a jar/bundle. The features file should be deployed separately from the bundle On Sat, Jan 26, 2013 at 9:54 AM, Claus Ibsen wrote: > On Tue, Jan 22, 2013 at 2:03 PM, Charles Moulliard > wrote: > > You are right. The ques

Re: Installing Camel examples in Karaf

2013-01-26 Thread Claus Ibsen
On Tue, Jan 22, 2013 at 2:03 PM, Charles Moulliard wrote: > You are right. The question is perhaps much more conceptual than technical > but Do we really need to create a archive with a KAR extension instead of > allowing to deploy a JAR file (= bundle) containing a features xml file > which is in

Re: Installing Camel examples in Karaf

2013-01-22 Thread Charles Moulliard
You are right. The question is perhaps much more conceptual than technical but Do we really need to create a archive with a KAR extension instead of allowing to deploy a JAR file (= bundle) containing a features xml file which is in fact the proposition of Claus Ibsen and certainly others ? On Tu

Re: Installing Camel examples in Karaf

2013-01-22 Thread Achim Nierbeck
Well a KAR archive was created for this exact scenario. So if we do this for std. jars, why would we need kars then? 2013/1/22 Charles Moulliard > On 22/01/13 11:42, Achim Nierbeck wrote: > >> hmm, afairc the deployment of a feature.xml embedded in a jar was meant to >> work this way. It was su

Re: Installing Camel examples in Karaf

2013-01-22 Thread Charles Moulliard
On 22/01/13 11:42, Achim Nierbeck wrote: hmm, afairc the deployment of a feature.xml embedded in a jar was meant to work this way. It was supposed to install just the feature itself without starting it right away. This was planned to work this way since it might result in "Downloading the complet

Re: Installing Camel examples in Karaf

2013-01-22 Thread Achim Nierbeck
hmm, afairc the deployment of a feature.xml embedded in a jar was meant to work this way. It was supposed to install just the feature itself without starting it right away. This was planned to work this way since it might result in "Downloading the complete internet" if someone isn't careful with t

Re: Installing Camel examples in Karaf

2013-01-22 Thread Charles Moulliard
Hi Claus, Procedure to deploy camel example with this instruction install -s feature:mvn:org.apache.camel/camel-example-sql/2.11-SNAPSHOT works fine now with that modification (https://issues.apache.org/jira/browse/KARAF-2134) EXCEPTED that the feature content (= bundles) are not installed. Guilla

Re: Installing Camel examples in Karaf

2013-01-22 Thread Claus Ibsen
On Mon, Jan 21, 2013 at 3:50 PM, Charles Moulliard wrote: > Works better. Nevertheless the features defined in the features file > deployed as a bundle are not deployed. Here is an example > > [ 127] [Installed ] [] [ 80] camel-example-sql > (2.11.0.SNAPSHOT) // CONTAINS FEATURES.XM

Re: Installing Camel examples in Karaf

2013-01-21 Thread Charles Moulliard
Works better. Nevertheless the features defined in the features file deployed as a bundle are not deployed. Here is an example [ 127] [Installed ] [] [ 80] camel-example-sql (2.11.0.SNAPSHOT) // CONTAINS FEATURES.XML FILE karaf@root> listurl Loaded URI true bundle://118.0:0/ME

Re: Installing Camel examples in Karaf

2013-01-21 Thread Guillaume Nodet
Raised and fixed https://issues.apache.org/jira/browse/KARAF-2134 The workaround is to use the plain http url instead of the mvn url. On Mon, Jan 21, 2013 at 10:42 AM, Charles Moulliard wrote: > Convention is : META-INF + "/" + one directory where directory = > "org.apache.karaf.shell.features"

Re: Installing Camel examples in Karaf

2013-01-21 Thread Charles Moulliard
Convention is : META-INF + "/" + one directory where directory = "org.apache.karaf.shell.features" + "/" + "*.xml" where * corresponds to a features.xml file On Mon, Jan 21, 2013 at 9:28 AM, Claus Ibsen wrote: > Hi > > Charles may have pointed out about the naming of the features file. > > Shou

Re: Installing Camel examples in Karaf

2013-01-21 Thread Claus Ibsen
Hi Charles may have pointed out about the naming of the features file. Should it be a file in META-INF which has this long name with all the dots? Or should it be a features.xml file in META-INF/org/apache/... eg deep down in a sub dir On Fri, Jan 18, 2013 at 3:41 PM, Claus Ibsen wrote: > Hi

Re: Installing Camel examples in Karaf

2013-01-21 Thread Charles Moulliard
I just had a quick look and discovered that existing code of Karaf 2.3 when a bundle is deployed using the command "feature:mvn:org.apache.camel/camel-example-sql/2.11-SNAPSHOT" does not install the features file included under META-INF directory. The existing code will only do that if the status o

Re: Installing Camel examples in Karaf

2013-01-21 Thread Claus Ibsen
On Sun, Jan 20, 2013 at 6:55 PM, Achim Nierbeck wrote: > Did you also start the bundle? To my understanding a bundle-tracker is only > able to kick in when a bundle is fully resolved. Therefore a start is > needed. You might also do this right when installing with osgi:instll -s > mvn: > Good

Re: Installing Camel examples in Karaf

2013-01-20 Thread Achim Nierbeck
Did you also start the bundle? To my understanding a bundle-tracker is only able to kick in when a bundle is fully resolved. Therefore a start is needed. You might also do this right when installing with osgi:instll -s mvn: regards, Achim 2013/1/18 Claus Ibsen > Hi > > > > On Fri, Jan 18,

Re: Installing Camel examples in Karaf

2013-01-20 Thread Christian Müller
Yes, that will work. But as I understood from Guillaume, Karaf already provides the "feature deployer". The question is: Why it doesn't work? ;-) It would be great if you (or another Karaf committer) could have a look why it doesn't work for Claus example. Best, Christian On Sat, Jan 19, 2013 at

Re: Installing Camel examples in Karaf

2013-01-19 Thread Christian Schneider
For my own examples I normally offer a README.txt with the commands to install the example. Like this one: https://github.com/cschneider/Karaf-Tutorial/blob/master/camel/jms2rest/ReadMe.txt Of course it is more than one command for a complex example but you can simply copy/paste the whole comm

Re: Installing Camel examples in Karaf

2013-01-19 Thread Claus Ibsen
On Fri, Jan 18, 2013 at 3:17 PM, Guillaume Nodet wrote: > Fwiw, when you use the url handler or drop the file in the deploy folder, > both methods just generate a bundle which has the feature file inside > META-INF/org.apache.karaf.shell.features > I cannot find any details about this in the docs

Re: Installing Camel examples in Karaf

2013-01-18 Thread Claus Ibsen
On Fri, Jan 18, 2013 at 12:46 PM, Achim Nierbeck wrote: > Hi Clause, > > thanks for summing up what we talked of on IRC :) > Yeah I guess it was a brief summary. I am just trying to push the envelope, to make developing / using / deploying integration applications with the Apache stack easier. T

Re: Installing Camel examples in Karaf

2013-01-18 Thread Claus Ibsen
Hi On Fri, Jan 18, 2013 at 2:30 PM, Guillaume Nodet wrote: > Are you talking about the features deployer ? > Karaf has it already. You can use osgi:install feature:mvn:xxx or drop the > features file in the deploy directory, or deploy any bundle which has a > META-INF/org.apache.karaf.shell.fe

Re: Installing Camel examples in Karaf

2013-01-18 Thread Guillaume Nodet
Fwiw, when you use the url handler or drop the file in the deploy folder, both methods just generate a bundle which has the feature file inside META-INF/org.apache.karaf.shell.features On Fri, Jan 18, 2013 at 2:53 PM, Achim Nierbeck wrote: > Oh well, > > didn't remember the last possibility of t

Re: Installing Camel examples in Karaf

2013-01-18 Thread Achim Nierbeck
Oh well, didn't remember the last possibility of the features-deployer :) thanks, Achim 2013/1/18 Guillaume Nodet > Are you talking about the features deployer ? > Karaf has it already. You can use osgi:install feature:mvn:xxx or drop the > features file in the deploy directory, or deploy an

Re: Installing Camel examples in Karaf

2013-01-18 Thread Guillaume Nodet
Are you talking about the features deployer ? Karaf has it already. You can use osgi:install feature:mvn:xxx or drop the features file in the deploy directory, or deploy any bundle which has a META-INF/org.apache.karaf.shell.features/*.xml file inside. On Fri, Jan 18, 2013 at 12:46 PM, Achim Nie

Re: Installing Camel examples in Karaf

2013-01-18 Thread Achim Nierbeck
Hi Clause, thanks for summing up what we talked of on IRC :) I think it could be even easier. We could add a bundle tracker for features.xml files that will install those with the features service. For this we don't even need a special syntax of the osgi:install url (and actually if you want a ur