Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » "pure" OSGi application in Equinox
"pure" OSGi application in Equinox [message #52848] Fri, 11 November 2005 00:26 Go to next message
David Kemper is currently offline David KemperFriend
Messages: 8
Registered: July 2009
Junior Member
I've been playing around with Eclipse and the Equinox OSGi layer, and I
have some related questions. (Note I am using the bundles from the
"production" 3.1.1 Eclipse release, not from the Equinox download area.)

1) I'm having a conceptual problem: I wish to create an OSGi application
without references to Eclipse at the core layer.

Specifically, I can create an application bundle, and in its
BundleActivator "launch" my application (e.g. by spawning my own worker
thread, or creating my own custome OSGi services and interacting with
other bundles, etc.). All I should need is org.eclipse.osgi_3.1.1.jar
and my own bundle.

However, all the examples I've seen depend on IPlatformRunnable from
Eclipse. If I don't supply an implementation of it in config.ini,
Equinox complains (but does not terminate).

Implementing this interface brings in
org.eclipse.core.runtime_3.1.1.jar. (I'm also not clear on whether or
why I need org.eclipse.update.configurator_3.1.0.jar.)

Could anyone out there help me with best practices for OSGi development
with Equinox?

I realize that Eclipse plugins are OSGi bundles, but I'd like to be as
"native OSGi" as possible.

2) I'd like to take advantage of Eclipse features and update sites. Will
this eventually be available through the OSGi layer, or do I need to
bind my implementation to Eclipse plugins? (I realize that this desire
might run counter to what I just wrote above.)

3) I see from the bundles area of the Eclipse Equinox site that there
are many interesting bundles that are coming soon (e.g. declarative
services and config admin). Is there any guidance on when they will be
available? I'd be particularly interested in the declarative services

Thanks for any input, and a special thanks (with my first post) for all
your fine efforts in this area.

/djk (Standard discaimers apply ;-)
Re: "pure" OSGi application in Equinox [message #53335 is a reply to message #52848] Wed, 16 November 2005 02:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com

"David Kemper" <djk@tibco.com> wrote in message
news:dl0ofe$o2b$1@news.eclipse.org...
> I've been playing around with Eclipse and the Equinox OSGi layer, and I
> have some related questions. (Note I am using the bundles from the
> "production" 3.1.1 Eclipse release, not from the Equinox download area.)
>
> 1) I'm having a conceptual problem: I wish to create an OSGi application
> without references to Eclipse at the core layer.
>
> Specifically, I can create an application bundle, and in its
> BundleActivator "launch" my application (e.g. by spawning my own worker
> thread, or creating my own custome OSGi services and interacting with
> other bundles, etc.). All I should need is org.eclipse.osgi_3.1.1.jar
> and my own bundle.
>
> However, all the examples I've seen depend on IPlatformRunnable from
> Eclipse. If I don't supply an implementation of it in config.ini,
> Equinox complains (but does not terminate).

I think there was a bug in 3.1 that meant the eclipse.ignoreApp property was
itself ignored :-) Setting this property to true tells Equinox to not look
for an Eclipse application to run and thus eliminates the error message.

> Implementing this interface brings in
> org.eclipse.core.runtime_3.1.1.jar. (I'm also not clear on whether or
> why I need org.eclipse.update.configurator_3.1.0.jar.)
>
> Could anyone out there help me with best practices for OSGi development
> with Equinox?
>
> I realize that Eclipse plugins are OSGi bundles, but I'd like to be as
> "native OSGi" as possible.

Understood. 3.1, for the most part allows you to do what you want but as
you are seeing, exposes/requires a bit more than you would like. The 3.2
plan calls for Equinox to be exposed as a much more stand alone piece
complete with the requisite tooling. As part of that, the runtime and
application model is currently being reworked to make your usecase more
straightforward and eliminate unnecessary dependencies.

> 2) I'd like to take advantage of Eclipse features and update sites. Will
> this eventually be available through the OSGi layer, or do I need to
> bind my implementation to Eclipse plugins? (I realize that this desire
> might run counter to what I just wrote above.)

This is not a all counter to your desire. One thing that I have heard from
various people is that they want to be pure OSGi and so cannot use any
Eclipse plugins. This just as unreasonable as saying that they also cannot
use cannot Apache Logging, or Hibernate or... As with consuming any
library, you need to understand the demands and requirements of that
library. Your observation is that grabbing *some* Eclipse 3.1 bundles
brings along a little too much Eclipes. Absolutely. We are working hard to
fix that so please keep pointing out the places where work is needed.

As for your exact point, Update currently requires the runtime bundle to
operate. It needs this mostly for the various helper classes. We have a
goal for the next month or two to fix this and allow you to use the Update
technology directly on Equinox (and perhaps any other OSGi framework)

> 3) I see from the bundles area of the Eclipse Equinox site that there
> are many interesting bundles that are coming soon (e.g. declarative
> services and config admin). Is there any guidance on when they will be
> available? I'd be particularly interested in the declarative services

These will come in over the next few weeks (hopefully all this year). There
are a few issues being worked out but I feel we are on the verge :-) I
cannot say which will show up when etc.

> Thanks for any input, and a special thanks (with my first post) for all
> your fine efforts in this area.

No problem. Please continue posting questions, bugs, *patches* etc for
things you find.

Jeff
Re: "pure" OSGi application in Equinox [message #55705 is a reply to message #52848] Wed, 04 January 2006 20:08 Go to previous message
Eclipse UserFriend
Originally posted by: shahriar_ali.hotmail.com

Hi,

I started looking at Equinox also. You mentioned that you
have seen some examples of Equinox implementation. Can
you please point to any Equinox tutorials/demos?

Thanks,
John
Previous Topic:Intercept class loading
Next Topic:Multiple exporters of the same package
Goto Forum:
  


Current Time: Thu Mar 28 13:10:28 GMT 2024

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

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

Back to the top