Just call bundle.update() without any parameter: the framework will re-read the URL location for new content --G
2014-04-01 20:29 GMT+02:00 Zaid Jamal Saeed Al Mahmoud < [email protected]>: > I am not sure I understand what you want me to try. > > I used the following to update the bundle: > > File file = new File("ipojo:file:"+path); > bundle.update(new FileInputStream(file)); > > This shows: java.io.FileNotFoundException: (The filename, directory name, > or volume label syntax is incorrect) > > Is there a way to update an iPOJO bundle with another Ipojo Bundle (Using > ipojo protocol). > > > Regards, > Zaid Almahmoud > > > -----Original Message----- > From: Guillaume Sauthier (OW2/GMail) [mailto:[email protected]] > Sent: 30 آذار, 2014 03:21 م > To: [email protected] > Subject: Re: Bundle Update and Online Manipulation > > 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\\De > > sktop\\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 > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

