Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Newbie: OSGi questions
Newbie: OSGi questions [message #86322] Thu, 05 April 2007 18:28 Go to next message
Asaf is currently offline AsafFriend
Messages: 36
Registered: July 2009
Member
Hi all,

I am new to OSGi so bare with me J

I have a couple of Questions:

1.. What are the prerequisites for running OSGi bundles?
Does it require the JVM to bootstrap the bundles directly? Or is it
possible to load the OSGi within an existing JVM (in my own main()
function)?
2.. I am developing a web application and running it on a Tomcat 5.5
server
I found the following link:
http://www.eclipse.org/equinox/server/http_in_container.php and couldn't
figure out whether its possible or not to load OSGi bundles under an already
existing web application?
Thanks in advance,

Asaf
Re: Newbie: OSGi questions [message #86429 is a reply to message #86322] Tue, 10 April 2007 02:49 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Hi Asaf,

> 1.. What are the prerequisites for running OSGi bundles?
> Does it require the JVM to bootstrap the bundles directly? Or is it
> possible to load the OSGi within an existing JVM (in my own main()
> function)?
The requirement for running OSGi bundles is just an OSGi framework like
Equinox. You can launch Equinox from your own program and no special
bootstrapping is required.

> 2.. I am developing a web application and running it on a Tomcat 5.5
> server
> I found the following link:
> http://www.eclipse.org/equinox/server/http_in_container.php and couldn't
> figure out whether its possible or not to load OSGi bundles under an
> already existing web application?
Definitely. That's what the servletbridge does. e.g. launches an instance of
Equinox and uses it to host various servlet and other bundles.

HTH
-Simon
Re: Newbie: OSGi questions [message #86487 is a reply to message #86429] Tue, 10 April 2007 10:39 Go to previous messageGo to next message
Asaf is currently offline AsafFriend
Messages: 36
Registered: July 2009
Member
Is there any sample anywhere showing how to launch Equinox OSGi framework in
an embedded mode?
I would like to manage it from a servlet server (TOMCAT 5.5) yet without
using the Bridge.

"Simon Kaegi" <simon_kaegi@ca.ibm.com> wrote in message
news:evetvu$2cf$1@build.eclipse.org...
> Hi Asaf,
>
>> 1.. What are the prerequisites for running OSGi bundles?
>> Does it require the JVM to bootstrap the bundles directly? Or is it
>> possible to load the OSGi within an existing JVM (in my own main()
>> function)?
> The requirement for running OSGi bundles is just an OSGi framework like
> Equinox. You can launch Equinox from your own program and no special
> bootstrapping is required.
>
>> 2.. I am developing a web application and running it on a Tomcat 5.5
>> server
>> I found the following link:
>> http://www.eclipse.org/equinox/server/http_in_container.php and couldn't
>> figure out whether its possible or not to load OSGi bundles under an
>> already existing web application?
> Definitely. That's what the servletbridge does. e.g. launches an instance
> of Equinox and uses it to host various servlet and other bundles.
>
> HTH
> -Simon
>
Re: Newbie: OSGi questions [message #86497 is a reply to message #86487] Tue, 10 April 2007 12:43 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
The best place to start would be to take at the servletbridge's
FrameworkLauncher (e.g.
org.eclipse.equinox.servletbridge.FrameworkLauncher)and in particular how it
interacts with EclipseStarter

"Asaf Lahav" <asaf.lahav@primagrid.com> wrote in message
news:evfpiv$gf9$1@build.eclipse.org...
> Is there any sample anywhere showing how to launch Equinox OSGi framework
> in an embedded mode?
> I would like to manage it from a servlet server (TOMCAT 5.5) yet without
> using the Bridge.
>
> "Simon Kaegi" <simon_kaegi@ca.ibm.com> wrote in message
> news:evetvu$2cf$1@build.eclipse.org...
>> Hi Asaf,
>>
>>> 1.. What are the prerequisites for running OSGi bundles?
>>> Does it require the JVM to bootstrap the bundles directly? Or is it
>>> possible to load the OSGi within an existing JVM (in my own main()
>>> function)?
>> The requirement for running OSGi bundles is just an OSGi framework like
>> Equinox. You can launch Equinox from your own program and no special
>> bootstrapping is required.
>>
>>> 2.. I am developing a web application and running it on a Tomcat 5.5
>>> server
>>> I found the following link:
>>> http://www.eclipse.org/equinox/server/http_in_container.php and couldn't
>>> figure out whether its possible or not to load OSGi bundles under an
>>> already existing web application?
>> Definitely. That's what the servletbridge does. e.g. launches an instance
>> of Equinox and uses it to host various servlet and other bundles.
>>
>> HTH
>> -Simon
>>
>
>
Previous Topic:Server with OSGi/equinox
Next Topic:Buddy Policy Question
Goto Forum:
  


Current Time: Sat Apr 20 00:10:01 GMT 2024

Powered by FUDForum. Page generated in 0.04252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top