On 6/18/13 09:34 , [email protected] wrote:
Dear,
I have a question about Bundle's update(InputStream input), and String
getLocation() methods.
I'm working on BroadBand Forum TR-069, and TR-157 (Software Modularity), and
OSGi.
I'm using the Bundle's update(InputStream input) method and expected that the
location of the just updated bundle corresponds to the URL given as input.
But, the OSGi specification (4.3.0) specifies the opposite (getLocation() must
not change when a bundle is updated).
Does anyone know why the specification stated this?
The location of a bundle is never updated. It is a unique identifier for
the bundle for its lifetime.
This was done so that the deployer of the bundle would have a well-known
way to refer to it, since bundle ID is not known in advance. The fact
that location was used by frameworks as a URL from which to obtain the
bundle JAR has confused the purpose of location, which may make you
think the location should change when the bundle is updated, but that is
not the case. The spec never stated that bundle location was a URL.
-> richard
Thanks a lot,
Regards,
Antonin.
-----
Antonin CHAZALET
IT&Labs / Département MIMS (M2M, Industrial, Multimedia Services)
[email protected]
Orange Business Services - GS/ITSS/IT&LABS/MIMS
195 rue Lavoisier - 38330 MONTBONNOT ST MARTIN - France
www.itlabs.fr.orange-business.com
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete
altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete
this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages
that have been modified, changed or falsified.
Thank you.
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev