In the latest Gogo Command module just being released, you can do:

    start (lb my.symbolic.name)

The list bundles command (lb) returns an array of bundles matching the specified name or symbolic name. We could expand this further by enhancing lb to take a filter (e.g., lb -f "(ldap-filter)") then you could do pretty much whatever you wanted.

For the update command, this is a little trickier since it only expects one bundle, but we could likely define a version expecting a bundle array.

-> richard

On 6/9/10 7:32, Guillaume Nodet wrote:
What if you have multiple versions of the same bundle deployed ?
I guess we could do something like:
    osgi:update mybundle,2.0.0 myotherbundle 32
Most of those commands inherit from the same base class BundlesCommand, so
it should be
easy to use a List<String>  instead of a List<Long>  and find the bundles
matching the ids / symbolicnames or symbolicname,version

On Wed, Jun 9, 2010 at 12:48, Charles Moulliard<[email protected]>wrote:

Hi,

It should be interesting that we can update/stop/start an bundle using
the Bundle-symbolicName and not the id of the bundle which is not
necessarily know by people of a project when it is deployed on a
server managed by administration users.

KR,

Charles Moulliard

Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel/ServiceMix Committer

*******************************************************************
- Blog : http://cmoulliard.blogspot.com
- Twitter : http://twitter.com/cmoulliard
- Linkedlin : http://www.linkedin.com/in/charlesmoulliard

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to