Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Using EMF under Apache Felix
Using EMF under Apache Felix [message #415809] Tue, 08 January 2008 09:51 Go to next message
Rajini Sivaram is currently offline Rajini SivaramFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

I am trying to run Apache Tuscany SDO under OSGi, and we are using the
Apache Felix OSGi runtime. SDO has a dependency on EMF, and hence we need
to install the EMF bundles in OSGi. Unfortunately the bundle manifest
entries of the EMF jars use Require-Bundle of org.eclipse.core.runtime,
which in turn requires Equinox. Since I want to use the EMF classes under
Felix and not Equinox, I would like to find some way of running EMF jars
under OSGi without requiring Eclipse. I think the classes loaded from the
Eclipse runtime relate to Plugin classes, which are used (extended) by the
bundle activator for EMF.

At the moment, I am modifying the EMF jars on the fly to remove the
Require-Bundle and Bundle-Activator entries from the manifest file before
installing the jars in Felix. Is there a better way to run EMF under a
non-Equinox OSGi environment without installing Eclipse?


Thank you,

Rajini
Re: Using EMF under Apache Felix [message #415818 is a reply to message #415809] Tue, 08 January 2008 13:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Rajini,

This question probably really should be directed to the Apache folks.
At Eclipse I can just provide a version intended to run with the Equinox
runtime so the Tuscany folks probably ought to make a version that works
well with Felix. Have you asked them about this? I'd be curious what
they say...


Rajini Sivaram wrote:
> Hello,
>
> I am trying to run Apache Tuscany SDO under OSGi, and we are using the
> Apache Felix OSGi runtime. SDO has a dependency on EMF, and hence we
> need to install the EMF bundles in OSGi. Unfortunately the bundle
> manifest entries of the EMF jars use Require-Bundle of
> org.eclipse.core.runtime, which in turn requires Equinox. Since I want
> to use the EMF classes under Felix and not Equinox, I would like to
> find some way of running EMF jars under OSGi without requiring
> Eclipse. I think the classes loaded from the Eclipse runtime relate to
> Plugin classes, which are used (extended) by the bundle activator for
> EMF.
>
> At the moment, I am modifying the EMF jars on the fly to remove the
> Require-Bundle and Bundle-Activator entries from the manifest file
> before installing the jars in Felix. Is there a better way to run EMF
> under a non-Equinox OSGi environment without installing Eclipse?
>
>
> Thank you,
>
> Rajini
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Using EMF under Apache Felix [message #415824 is a reply to message #415818] Tue, 08 January 2008 14:32 Go to previous messageGo to next message
Rajini Sivaram is currently offline Rajini SivaramFriend
Messages: 2
Registered: July 2009
Junior Member
Ed,

Thank you for your reply.

Since Tuscany SDO should work both under Equinox and Felix (and it is
typically run without OSGi), modifying the EMF jar files specifically for
Felix and distributing two copies of EMF doesn't seem to be a good option
(especially since the only change is in the manifest). I will post a note
on the Tuscany mailing list to see if there is a wider interest to get
Tuscany-SDO running under Felix.

Thank you,

Rajini
Re: Using EMF under Apache Felix [message #415854 is a reply to message #415824] Wed, 09 January 2008 19:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jconlon.apache.org

Rajini Sivaram wrote:
> Ed,
>
> Thank you for your reply.
>
> Since Tuscany SDO should work both under Equinox and Felix (and it is
> typically run without OSGi), modifying the EMF jar files specifically
> for Felix and distributing two copies of EMF doesn't seem to be a good
> option (especially since the only change is in the manifest). I will
> post a note on the Tuscany mailing list to see if there is a wider
> interest to get Tuscany-SDO running under Felix.
>
> Thank you,
>
> Rajini
>
>
Hi Rajini,

Have done a lot of work with Felix, before becoming more involved with
Eclipse and EMF and I agree with you, the clean way to do it is with
Import-Package and without using require bundle.

To use or not use Require-Bundle is not just a Felix issue it is an OSGi
issue.
http://wiki.eclipse.org/index.php/Equinox_Boot_Delegation

See also
http://www.osgi.org/blog/2006/04/misconceptions-about-osgi-h eaders.html

Although tooling in Eclipse makes it so easy that I have been seduced at
times to using it myself in my own bundles.

Perhaps you should also bring this up at the Equinox newsgroup or even
the OSGi Developer Mail List <osgi-dev@www2.osgi.org> many of Equinox
folks are also on the latter.


I too, would like to see more a more OSGi compatible EMF solution.

cheers,

John
Re: Using EMF under Apache Felix [message #415855 is a reply to message #415854] Wed, 09 January 2008 19:29 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
John,

We have https://bugs.eclipse.org/bugs/show_bug.cgi?id=212827 which was
raised because this issue also affects the ability to use RAP. The
problem is that we export a lot of our imports (remember that we go way
to back 2002 and were one of the first non-platform technologies and
much has changed since then) so changes to our imports will be breaking
changes for our clients. I'm interested to see what happens with the
Eclipse 4.0 effort and the extent to which we can be involved in that in
order to make the necessary changes to keep the forward momentum going...


John E. Conlon wrote:
> Rajini Sivaram wrote:
>> Ed,
>>
>> Thank you for your reply.
>>
>> Since Tuscany SDO should work both under Equinox and Felix (and it is
>> typically run without OSGi), modifying the EMF jar files specifically
>> for Felix and distributing two copies of EMF doesn't seem to be a
>> good option (especially since the only change is in the manifest). I
>> will post a note on the Tuscany mailing list to see if there is a
>> wider interest to get Tuscany-SDO running under Felix.
>>
>> Thank you,
>>
>> Rajini
>>
>>
> Hi Rajini,
>
> Have done a lot of work with Felix, before becoming more involved with
> Eclipse and EMF and I agree with you, the clean way to do it is with
> Import-Package and without using require bundle.
>
> To use or not use Require-Bundle is not just a Felix issue it is an
> OSGi issue.
> http://wiki.eclipse.org/index.php/Equinox_Boot_Delegation
>
> See also
> http://www.osgi.org/blog/2006/04/misconceptions-about-osgi-h eaders.html
>
> Although tooling in Eclipse makes it so easy that I have been seduced
> at times to using it myself in my own bundles.
>
> Perhaps you should also bring this up at the Equinox newsgroup or even
> the OSGi Developer Mail List <osgi-dev@www2.osgi.org> many of Equinox
> folks are also on the latter.
>
>
> I too, would like to see more a more OSGi compatible EMF solution.
>
> cheers,
>
> John
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Using EMF under Apache Felix [message #415900 is a reply to message #415855] Wed, 09 January 2008 21:28 Go to previous message
Eclipse UserFriend
Originally posted by: jconlon.apache.org

Ed Merks wrote:
> John,
>
> We have https://bugs.eclipse.org/bugs/show_bug.cgi?id=212827 which was
> raised because this issue also affects the ability to use RAP. The
> problem is that we export a lot of our imports (remember that we go way
> to back 2002 and were one of the first non-platform technologies and
> much has changed since then) so changes to our imports will be breaking
> changes for our clients.
Understand, but a new release could offer alternative bundles - one for
future development and another for legacy users. Some of the bundles
could just be library bundles as well.
Have you seen the bundle analysis and building tool at
http://www.aqute.biz/Code/Bnd


Your idea from the bug
> We need to understand better if we really ought to have an
> org.eclipse.emf.common.rap.ui and be able to generate code against that...

This could work. But consider the name to be more generic as it would
apply not only for rap but for any usage of the bundle and it's
dependencies within an OSGi runtime. How about
org.eclipse.emf.common.osgi.ui?

I'm interested to see what happens with the
> Eclipse 4.0 effort and the extent to which we can be involved in that in
> order to make the necessary changes to keep the forward momentum going...

Any ideas what's up from an OSGi standpoint?

I saw there was a Blue Sky BOF at the EclipseCon and I expect Jeff
McAffer is still intent on encouraging Eclipse continued alignment with
OSGi bundle and services dependencies.

John

>
> John E. Conlon wrote:
>> Rajini Sivaram wrote:
>>> Ed,
>>>
>>> Thank you for your reply.
>>>
>>> Since Tuscany SDO should work both under Equinox and Felix (and it is
>>> typically run without OSGi), modifying the EMF jar files specifically
>>> for Felix and distributing two copies of EMF doesn't seem to be a
>>> good option (especially since the only change is in the manifest). I
>>> will post a note on the Tuscany mailing list to see if there is a
>>> wider interest to get Tuscany-SDO running under Felix.
>>>
>>> Thank you,
>>>
>>> Rajini
>>>
>>>
>> Hi Rajini,
>>
>> Have done a lot of work with Felix, before becoming more involved with
>> Eclipse and EMF and I agree with you, the clean way to do it is with
>> Import-Package and without using require bundle.
>>
>> To use or not use Require-Bundle is not just a Felix issue it is an
>> OSGi issue.
>> http://wiki.eclipse.org/index.php/Equinox_Boot_Delegation
>>
>> See also
>> http://www.osgi.org/blog/2006/04/misconceptions-about-osgi-h eaders.html
>>
>> Although tooling in Eclipse makes it so easy that I have been seduced
>> at times to using it myself in my own bundles.
>>
>> Perhaps you should also bring this up at the Equinox newsgroup or even
>> the OSGi Developer Mail List <osgi-dev@www2.osgi.org> many of Equinox
>> folks are also on the latter.
>>
>>
>> I too, would like to see more a more OSGi compatible EMF solution.
>>
>> cheers,
>>
>> John
>>
>>
>>
Previous Topic:SDO and Transaction
Next Topic:Multiple models
Goto Forum:
  


Current Time: Fri Apr 26 06:08:12 GMT 2024

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

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

Back to the top