Re: Passing arguments to shell:exec or shell:source

2015-10-18 Thread Jean-Baptiste Onofré
Hi Raffi, shell:source is to "load" a shell script file. For a external command, you have to use shell:exec. Regards JB On 10/19/2015 12:11 AM, Basmajian, Raffi wrote: Is it possible to pass arguments to shell:source? I’m on Karaf 2.4 (Jboss Fuse 6.2), I want to execute system commands from

Re: [Cellar-DOSGI] Services with multiple instances?

2015-10-18 Thread Jean-Baptiste Onofré
Ah ok, understood. It should work, if not, it's a bug ;) Let me try to reproduce it. Regards JB On 10/18/2015 11:03 PM, garyhodgson wrote: Hi JB, Actually I was meaning something a little different. Say I have an api bundle with an EchoService interface, and then an implemention bundle with

Passing arguments to shell:exec or shell:source

2015-10-18 Thread Basmajian, Raffi
Is it possible to pass arguments to shell:source? I'm on Karaf 2.4 (Jboss Fuse 6.2), I want to execute system commands from the console, tried using shell:source but could not pass arguments to the script being executed. So I switched to shell:exec with the following script that accepts arbitra

Re: [Cellar-DOSGI] Services with multiple instances?

2015-10-18 Thread Scott Lewis
On 10/18/2015 2:03 PM, garyhodgson wrote: Hi JB, Actually I was meaning something a little different. Say I have an api bundle with an EchoService interface, and then an implemention bundle with two implementations, SimpleEchoService and ReverseEchoService. Each of these have the "service.expor

Re: [Cellar-DOSGI] Services with multiple instances?

2015-10-18 Thread garyhodgson
Hi JB, Actually I was meaning something a little different. Say I have an api bundle with an EchoService interface, and then an implemention bundle with two implementations, SimpleEchoService and ReverseEchoService. Each of these have the "service.exported.interfaces=*" property defined, plus a f

Re: [ANN] Apache Karaf 4.0.2 Released!

2015-10-18 Thread Jean-Baptiste Onofré
Hi Gary, I think we already have a report about console issue on Windows (KARAF-4072). I don't think it's exactly the same issue but it could be related. Please, don't hesitate to create a Jira, I will work on a Windows VM to reproduce. Thanks, Regards JB On 10/18/2015 08:48 PM, garyhodgs

Re: [Cellar-DOSGI] Services with multiple instances?

2015-10-18 Thread Jean-Baptiste Onofré
Hi Gary, I guess that you mean on the cluster, having the same service deployed on multiple nodes, right ? Even if you can use service properties to identify the service instance on different nodes (in addition of the exported.service.interface one), implicitly Cellar doesn't add additional

Re: [ANN] Apache Karaf 4.0.2 Released!

2015-10-18 Thread garyhodgson
Hi JB, Sorry for the late reply - I didn't get an email notification for this one. Yeah I bet it's only on Windows :/ Interestingly it only appears to happen when connected to an instance, not in the root shell. Do you want me to raise a Jira? Regards, Gary -- View this message in context:

[Cellar-DOSGI] Services with multiple instances?

2015-10-18 Thread garyhodgson
Hi guys, Does cellar-dosgi handle multiple instances of a service, differentiated via properties, i.e where they can be selected via a filter? When I publish a single service in node a, and call it from a client in node b, everything works as expected. But if the service in node a has multiple

Re: features-add-to-repository and multiple versions of a feature

2015-10-18 Thread Achim Nierbeck
Hi, this might be a really, really late reply :D But did you consider on using the karaf-maven-plugin for creating a custom assembly where those bootfeatures are used? In that scenario it shouldn't be much of an issue. But maybe I'm wrong and most likely you already found something that solved it

Re: Karaf Features Maven archetype (karaf-feature-archetype)

2015-10-18 Thread Achim Nierbeck
Hi, the karaf-maven-plugin right now only takes dependencies for bundles into account of using those to "fill in the gaps" for feature files. If you want to build a more sophisticated feature file you'll need to create it yourself. But you can combine the two for example if you take your "hand-mad