You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Charles Abreu <ch...@gmail.com> on 2007/10/18 14:15:46 UTC

Embed Felix in a applet

Hi,

Is it possible to embed Felix in a applet? If yes, from where are bundles
loaded? Can they be loaded from the applet classpath?

Thanks in advance!

Charles Abreu

Re: Embed Felix in a applet

Posted by Marcel Offermans <ma...@luminis.nl>.
On Oct 18, 2007, at 14:38 , Charles Abreu wrote:

> I did read the article, but it was not clear about if bundles can  
> be loaded
> from sources other than the filesystem. I plan to deploy my app as  
> an applet
> and by Webstart too, but I don't know how to inform Felix to load  
> my bundles
> from the server, maybe from app classpath, and not from the client
> filesystem.

If you just look at the API the OSGi specification has for loading  
bundles, you can see that bundles can be installed and updated based  
on InputStreams. That makes it trivial to load a bundle from just  
about anywhere, provided the security restrictions don't get in the way.

> BTW, Eclipse Equinox has a launcher that can run the framework and  
> bundles
> via WebStart.

It might make sense for us (as a Felix community) to create a  
subproject or document with different launchers too. I'm quite sure  
many people have embedded Felix in applets, webstart applications,  
servlet containers, or even OSGi bundles.

Greetings, Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Embed Felix in a applet

Posted by Charles Abreu <ch...@gmail.com>.
On 10/18/07, Marcel Offermans <ma...@luminis.nl> wrote:
>
> Hello Charles,
>
> On Oct 18, 2007, at 14:15 , Charles Abreu wrote:
>
> > Is it possible to embed Felix in a applet? If yes, from where are
> > bundles
> > loaded? Can they be loaded from the applet classpath?
>
> The Felix website contains a good article on launching and embedding
> the framework:
>
> http://felix.apache.org/site/launching-and-embedding-apache-felix.html


Thank you, Marcel.

I did read the article, but it was not clear about if bundles can be loaded
from sources other than the filesystem. I plan to deploy my app as an applet
and by Webstart too, but I don't know how to inform Felix to load my bundles
from the server, maybe from app classpath, and not from the client
filesystem.

BTW, Eclipse Equinox has a launcher that can run the framework and bundles
via WebStart.

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/java_web_start.htm

I'm looking if there is something similar in Felix.

Regards,
Charles

Greetings, Marcel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Embed Felix in a applet

Posted by Marcel Offermans <ma...@luminis.nl>.
Hello Charles,

On Oct 18, 2007, at 14:15 , Charles Abreu wrote:

> Is it possible to embed Felix in a applet? If yes, from where are  
> bundles
> loaded? Can they be loaded from the applet classpath?

The Felix website contains a good article on launching and embedding  
the framework:

http://felix.apache.org/site/launching-and-embedding-apache-felix.html

Greetings, Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org