You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Zaid Jamal Saeed Al Mahmoud <za...@kustar.ac.ae> on 2014/04/01 20:29:37 UTC

RE: Bundle Update and Online Manipulation

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:guillaume.ow2@gmail.com] 
Sent: 30 آذار, 2014 03:21 م
To: users@felix.apache.org
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 <
zaid.almahmoud@kustar.ac.ae>:

>  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:image001.png@01CE4FB8.E6C8A910] <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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Bundle Update and Online Manipulation

Posted by "Guillaume Sauthier (OW2/GMail)" <gu...@gmail.com>.
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 <
zaid.almahmoud@kustar.ac.ae>:

> 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:guillaume.ow2@gmail.com]
> Sent: 30 آذار, 2014 03:21 م
> To: users@felix.apache.org
> 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 <
> zaid.almahmoud@kustar.ac.ae>:
>
> >  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:image001.png@01CE4FB8.E6C8A910] <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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>