No, the URL string can be anything ... Just realize the update()
method will not work when it is not a URL; you will have to use the
update(InputStream) method. Actually, in the mobile specification,
this is mandated.

See 6.1.6.15, "typically in the form of a URL", clearly indicating
that it is not mandated to be a URL.

Kind regards,

     Peter Kriens
     




CC> Need a little insight from others here...  When installing a bundle from an
CC> InputStream using the form:

CC> bundleContext.installBundle(String location, InputStream is)

CC> does the location String have to be a valid URL string?  I have a couple of
CC> scenarios where existing code running on Equinox and Knopflerfish handles
CC> this fine, but in Felix we are using that String to create a valid URL
CC> object for the CodeSource constructor at Felix.java:2921 so we get a
CC> MalformedURLException at SecureAction.java:161

CC> I am just trying to figure out if it is pure luck that Equinox and KF work
CC> with bogus location Strings (only when installing from InputStream) or if it
CC> is something that we need to look at in Felix.  I have run into this twice
CC> this week, once with a client's code and once in Spring-OSGi test harness.

CC> Chris


-- 
Peter Kriens                              Tel +33467542167
9C, Avenue St. Drézéry                    AOL,Yahoo: pkriens
34160 Beaulieu, France                    ICQ 255570717
Skype pkriens                             Fax +1 8153772599

Reply via email to