Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Newbie OSGi Question
Newbie OSGi Question [message #84302] Sat, 17 March 2007 13:19 Go to next message
Eclipse UserFriend
Originally posted by: carlushenry.gmail.com

Having been a fan of the Eclipse Platform for a long time, I am excited
to say that I have finally started to look under hood, and learn more
about Equinox and OSGi. After spending some time with OSGi, I feel as
though I am missing some very basic information.

I have spent some time with Neil Bartlett "Getting Started with OSGi"
series (http://neilbartlett.name/blog/osgi-articles/), but it has left
me wanting.

I would like to build a batch application based on OSGi, that is going
to be a long running process. I want to leverage the bundle development
nature of OSGi, with it's bundle management facilities. What I do not
understand is how do I build such an application, run it in the
background (to avoid the console in the foreground), then attach to the
console if I would like to update bundles?

Any help in this area would be appreciated.

Thanks
Carlus
Re: Newbie OSGi Question [message #84317 is a reply to message #84302] Sat, 17 March 2007 22:09 Go to previous message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
The first thing to know is that when equinox runs under the cover of the
eclipse sdk, it runs in a mode where it automatically exists at the end of
the application, of course such a mode would unlikely be suitable for you.
This mode can be turned off by setting -noExit (this is only needed if you
run from the eclipse.exe or the launcher jar).

In order to get a console to connect to remotely, simply set a port after
the -console argument (e.g -console 83)

Now just to put all that together you can try:
eclipse.exe -console 83 then connect to your localhost using telnet
and you can see all the bundles.
eclipse.exe -console 83 -noExit you will see that when you stop the
workbench the fwk does not exit

The other thing that can be usefull for you is the new application model
(defined in the osgi 4.0 spec) which allows to schedule / lock / run
applications. An example of this app model can be found
http://wiki.eclipse.org/index.php/Equinox_Demos

An other resource that could be usefull to you is the list all the
parameters that are supported
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html

HTH,

PaScaL

"Carlus Henry" <carlushenry@gmail.com> wrote in message
news:etgpsp$b2p$1@utils.eclipse.org...
> Having been a fan of the Eclipse Platform for a long time, I am excited to
> say that I have finally started to look under hood, and learn more about
> Equinox and OSGi. After spending some time with OSGi, I feel as though I
> am missing some very basic information.
>
> I have spent some time with Neil Bartlett "Getting Started with OSGi"
> series (http://neilbartlett.name/blog/osgi-articles/), but it has left me
> wanting.
>
> I would like to build a batch application based on OSGi, that is going to
> be a long running process. I want to leverage the bundle development
> nature of OSGi, with it's bundle management facilities. What I do not
> understand is how do I build such an application, run it in the background
> (to avoid the console in the foreground), then attach to the console if I
> would like to update bundles?
>
> Any help in this area would be appreciated.
>
> Thanks
> Carlus
Previous Topic:What is the best way to diagnose an Eclipse instance from an external java/eclipse application.
Next Topic:Manage Bundle starting/loading
Goto Forum:
  


Current Time: Fri Apr 26 09:59:32 GMT 2024

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

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

Back to the top