AFAIK, the framework stores the original install URL with the bundle.
It's used when you call bundle.install() without any parameter.

So, the manipulation should be performed again (reusing the same URL: "
ipojo:file:C:\\Users\\zaid.almahmoud\\Desktop\\plugins\\
PlainHelloiPOJO_1.0.0.201403081557.jar" in your case).
Can you make a try ?

--G


2014-03-29 20:48 GMT+01:00 Zaid Jamal Saeed Al Mahmoud <
[email protected]>:

>  Hey.
>
> I am using iPOJO online manipulator to install an iPOJO bundle as the
> following:
>
>
>
>                  Bundle M =
> bundleContext1.installBundle("ipojo:file:C:\\Users\\zaid.almahmoud\\Desktop\\plugins\\PlainHelloiPOJO_1.0.0.201403081557.jar");
>
>                  M.start();
>
>
>
> Notice the use of "ipojo" protocol in the bundle path.
>
>
>
> But what if I want to update this bundle with another iPOJO bundle using
> the online manipulator. Is that possible? The only way I am aware of so far
> to update a bundle is by using FileInputStream as the following,
>
>
>
>                        File file = *new* File(bundle_path);
>
>               bundle.update(*new* FileInputStream(file));
>
>
>
> Can I include the ipojo protocol within the bundle path? I did it before
> and I got an error. What is the right way to achieve what I need? Thanks.
>
>
>
>
>
> Kind Regards,
>
> Zaid Almahmoud
>
> Research Assistant
>
> [image: cid:[email protected]] <http://www.ebtic.org/>
>
> *Khalifa University of Science, Technology, and Research*
>
> Abu Dhabi - United Arab Emirates
>
> TEL: 00971-2-401-8178
>
> MOB: 00971-50-9619601
>
>
>

Reply via email to