You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by sekaijin <jy...@yahoo.fr> on 2015/04/21 12:40:09 UTC

restart command problem

hello

I use karaf 2.2.2 and I'm looking for a newer version.
I'm testing the version 2.4.1

I have many bundles whose symbolic name is constructed as follows
domain-app-extension or domain-app
like :
ng484-eifel-in
ng485-orbis-out
ng484-router
ng486-eifel-out

with the version 2.2.2, the "restart" command accepts a part of the symbolic
names.
restart eifel
restarts all  bundle with symbolic name that contains eifel
like:
ng484-Eifel-in
ng486-Eifel-out
or
restart ng484
restarts all  bundle with symbolic name that contains ng484
like:
ng484-Eifel-in
ng484-router

with 2.4.1 I get the message
"No bundles specified."

how to reproduce the behavior of version 2.2.2?

Thank
A+JYT



--
View this message in context: http://karaf.922171.n3.nabble.com/restart-command-problem-tp4039826.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: restart command problem

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

please try to use regex (.*eifel.*) or glob (*eifel*).

Regards
JB

On 04/21/2015 12:40 PM, sekaijin wrote:
> hello
>
> I use karaf 2.2.2 and I'm looking for a newer version.
> I'm testing the version 2.4.1
>
> I have many bundles whose symbolic name is constructed as follows
> domain-app-extension or domain-app
> like :
> ng484-eifel-in
> ng485-orbis-out
> ng484-router
> ng486-eifel-out
>
> with the version 2.2.2, the "restart" command accepts a part of the symbolic
> names.
> restart eifel
> restarts all  bundle with symbolic name that contains eifel
> like:
> ng484-Eifel-in
> ng486-Eifel-out
> or
> restart ng484
> restarts all  bundle with symbolic name that contains ng484
> like:
> ng484-Eifel-in
> ng484-router
>
> with 2.4.1 I get the message
> "No bundles specified."
>
> how to reproduce the behavior of version 2.2.2?
>
> Thank
> A+JYT
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/restart-command-problem-tp4039826.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: restart command problem

Posted by sekaijin <jy...@yahoo.fr>.
Thank you for these very rapid responses.



--
View this message in context: http://karaf.922171.n3.nabble.com/restart-command-problem-tp4039826p4039835.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: restart command problem

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
One thing: sekaijin talks about bundle:restart not instance:restart. The 
BundleSelector selects bundles using the following logic:

1/ if the user provides a bundle ID, it uses it
2/ if the user provides a bundle ID range (25-30), it selects all 
bundles with bundle ID in the range
3/ if the user provides name/version or just name, the name can contain 
regex on bundle name or bundle symbolic name

Regards
JB

On 04/21/2015 01:01 PM, Morgan Hautman wrote:
> Hello sekaijin,
>
> We are using java.util.regex.Pattern.
>
> In your case this should be
>
> restart .*eifel.*
>
> Regards,
> Morgan
>
> On 21/04/2015 12:40, sekaijin wrote:
>> hello
>>
>> I use karaf 2.2.2 and I'm looking for a newer version.
>> I'm testing the version 2.4.1
>>
>> I have many bundles whose symbolic name is constructed as follows
>> domain-app-extension or domain-app
>> like :
>> ng484-eifel-in
>> ng485-orbis-out
>> ng484-router
>> ng486-eifel-out
>>
>> with the version 2.2.2, the "restart" command accepts a part of the
>> symbolic
>> names.
>> restart eifel
>> restarts all  bundle with symbolic name that contains eifel
>> like:
>> ng484-Eifel-in
>> ng486-Eifel-out
>> or
>> restart ng484
>> restarts all  bundle with symbolic name that contains ng484
>> like:
>> ng484-Eifel-in
>> ng484-router
>>
>> with 2.4.1 I get the message
>> "No bundles specified."
>>
>> how to reproduce the behavior of version 2.2.2?
>>
>> Thank
>> A+JYT
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/restart-command-problem-tp4039826.html
>> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: restart command problem

Posted by Morgan Hautman <mo...@gmail.com>.
Hello sekaijin,

We are using java.util.regex.Pattern.

In your case this should be

restart .*eifel.*

Regards,
Morgan

On 21/04/2015 12:40, sekaijin wrote:
> hello
>
> I use karaf 2.2.2 and I'm looking for a newer version.
> I'm testing the version 2.4.1
>
> I have many bundles whose symbolic name is constructed as follows
> domain-app-extension or domain-app
> like :
> ng484-eifel-in
> ng485-orbis-out
> ng484-router
> ng486-eifel-out
>
> with the version 2.2.2, the "restart" command accepts a part of the symbolic
> names.
> restart eifel
> restarts all  bundle with symbolic name that contains eifel
> like:
> ng484-Eifel-in
> ng486-Eifel-out
> or
> restart ng484
> restarts all  bundle with symbolic name that contains ng484
> like:
> ng484-Eifel-in
> ng484-router
>
> with 2.4.1 I get the message
> "No bundles specified."
>
> how to reproduce the behavior of version 2.2.2?
>
> Thank
> A+JYT
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/restart-command-problem-tp4039826.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.