You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "Steele, Richard" <ri...@steelezone.net> on 2011/02/03 17:40:05 UTC

Way to start installed bundle automatically using gogo?

Is there a way to install and start a bundle in one step?  That is, rather
than having to do

g! install file:/...
Bundle ID: 27
g! start 27

I'd like to be able to start the bundle without having to know its id; e.g.,

g! install file:/....;start

and have the start command infer the bundle id magically.  This, of course,
doesn't work in gogo, and is just a suggested syntax.

Any hints?

Thanks,
Rich

Re: Way to start installed bundle automatically using gogo?

Posted by Derek Baum <de...@paremus.com>.
g! b = context:installbundle file:mybundle-1.2.3.jar
g! $b start

where context:installbundle is a direct call to the installBundle method on
the BundleContext
i.e. not error handling if you provide wrong or incorrect arguments

Derek



On 3 February 2011 16:40, Steele, Richard <ri...@steelezone.net> wrote:

> Is there a way to install and start a bundle in one step?  That is, rather
> than having to do
>
> g! install file:/...
> Bundle ID: 27
> g! start 27
>
> I'd like to be able to start the bundle without having to know its id;
> e.g.,
>
> g! install file:/....;start
>
> and have the start command infer the bundle id magically.  This, of course,
> doesn't work in gogo, and is just a suggested syntax.
>
> Any hints?
>
> Thanks,
> Rich
>

Re: Way to start installed bundle automatically using gogo?

Posted by Andriy Drozdyuk <dr...@gmail.com>.
Or:
deploy -s "Bundle Name"

if your bundle is in OBR!
-Andriy Drozdyuk



On Thu, Feb 3, 2011 at 12:50 PM, Steele, Richard <ri...@steelezone.net> wrote:
> Oh my--how did I miss that?
>
> Thanks!
>
> Rich
>
> On Thu, Feb 3, 2011 at 11:47 AM, Richard S. Hall <he...@ungoverned.org>wrote:
>
>> g! start file:...
>>
>> -> richard
>>
>>
>> On 2/3/11 11:40, Steele, Richard wrote:
>>
>>> Is there a way to install and start a bundle in one step?  That is, rather
>>> than having to do
>>>
>>> g! install file:/...
>>> Bundle ID: 27
>>> g! start 27
>>>
>>> I'd like to be able to start the bundle without having to know its id;
>>> e.g.,
>>>
>>> g! install file:/....;start
>>>
>>> and have the start command infer the bundle id magically.  This, of
>>> course,
>>> doesn't work in gogo, and is just a suggested syntax.
>>>
>>> Any hints?
>>>
>>> Thanks,
>>> Rich
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Way to start installed bundle automatically using gogo?

Posted by "Steele, Richard" <ri...@steelezone.net>.
Oh my--how did I miss that?

Thanks!

Rich

On Thu, Feb 3, 2011 at 11:47 AM, Richard S. Hall <he...@ungoverned.org>wrote:

> g! start file:...
>
> -> richard
>
>
> On 2/3/11 11:40, Steele, Richard wrote:
>
>> Is there a way to install and start a bundle in one step?  That is, rather
>> than having to do
>>
>> g! install file:/...
>> Bundle ID: 27
>> g! start 27
>>
>> I'd like to be able to start the bundle without having to know its id;
>> e.g.,
>>
>> g! install file:/....;start
>>
>> and have the start command infer the bundle id magically.  This, of
>> course,
>> doesn't work in gogo, and is just a suggested syntax.
>>
>> Any hints?
>>
>> Thanks,
>> Rich
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Way to start installed bundle automatically using gogo?

Posted by "Richard S. Hall" <he...@ungoverned.org>.
g! start file:...

-> richard

On 2/3/11 11:40, Steele, Richard wrote:
> Is there a way to install and start a bundle in one step?  That is, rather
> than having to do
>
> g! install file:/...
> Bundle ID: 27
> g! start 27
>
> I'd like to be able to start the bundle without having to know its id; e.g.,
>
> g! install file:/....;start
>
> and have the start command infer the bundle id magically.  This, of course,
> doesn't work in gogo, and is just a suggested syntax.
>
> Any hints?
>
> Thanks,
> Rich
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org