[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] same bundle in multiple regions

You can install the same bundle (same bits) using different locations strings. But a location string is a unique identifier for an installed bundle. Use the 2 argument version of BundleContext.installBundle using unique location strings to install a bundle from the same URL multiple times.

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the
OSGi Alliance

office: +1 386 848 1781
mobile: +1 386 848 3788

From:        Borislav Kapukaranov <b.kapukaranov@xxxxxxxxx>
To:        equinox-dev@xxxxxxxxxxx,
Date:        2011/09/23 06:58
Subject:        [equinox-dev] same bundle in multiple regions
Sent by:        equinox-dev-bounces@xxxxxxxxxxx

Hey folks,

I have a question on installing a bundle from the same location.
Take the latest Virgo 3.0.x as a good example of more than one region and connect with telnet to each console.
If you try to install a bundle from the same location in both regions via each region's console this will fail with something like "Bundle already installed...".

Is this working as designed? Shouldn't it be possible to install a bundle from the same location(same string) if it's in different regions - Equinox may treat it as a different bundle and create it its own data folder, id, etc?
http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg06875.html suggest that should be possible, as the first installation won't be visible to the context of the other region.

equinox-dev mailing list