Skip to main content



      Home
Home » Eclipse Projects » Equinox » correct dependencies for Event Admin
correct dependencies for Event Admin [message #59102] Tue, 31 January 2006 13:18 Go to next message
Eclipse UserFriend
Originally posted by: morova.bol.com.br

Hi,

I have a bundle that uses event admin to post events. The only way I got
got Event Admin Service registered was declaring both
org.osgi.service.event and org.eclipse.equinox.event as Imported-Pakages
in the META-INF, instead of only declaring the osgi bundle as I expected.

What is the proper way to do this? I'm using eclipse 3.2M4.

Thanks

Gustavo
Re: correct dependencies for Event Admin [message #60473 is a reply to message #59102] Thu, 09 February 2006 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com

I suspect what you are seeing is a result of the fact that the event admin
bundle itself does not export anything that you would import. That is, you
have bundle A that imports org.osig.srevice.event. If you then follow
dependencies, that would not get you to the org.eclipse.equinox.event bundle
since it does not export that package (it comes from the services bundle).
However, if you change A to import org.eclipse.equinox.event and do Add
Required bundles (or whatever) then org.eclipse.equinox.event will get added
to a configuration you are running. Note however that taht package is
internal and not intended to be used by you.

This is a normal OSGi scenario and requires users to be careful when
specifying the lineup of bundles taht are installed in a configuration.
Going forward it would be interesting to factor in things like
Import-Service into the computation of required bundles etc.

Does this sound like it is your problem?

Jeff

"Gustavo Morozowski" <morova@bol.com.br> wrote in message
news:pan.2006.01.31.18.17.53.556717@bol.com.br...
> Hi,
>
> I have a bundle that uses event admin to post events. The only way I got
> got Event Admin Service registered was declaring both
> org.osgi.service.event and org.eclipse.equinox.event as Imported-Pakages
> in the META-INF, instead of only declaring the osgi bundle as I expected.
>
> What is the proper way to do this? I'm using eclipse 3.2M4.
>
> Thanks
>
> Gustavo
Re: correct dependencies for Event Admin [message #61206 is a reply to message #60473] Fri, 10 February 2006 12:59 Go to previous message
Eclipse UserFriend
Originally posted by: morova.bol.com.br

It seems that I was not starting all EventAdmin dependencies together, so
it didn't go to the ACTIVE state, and when I used the internal package
somewhat it forced eclipse to resolve the needed dependencies.

Now I learned the lesson -

always press the Add Required Plug-ins button :)

Gustavo


On Thu, 09 Feb 2006 11:34:00 -0500, Jeff McAffer wrote:

> I suspect what you are seeing is a result of the fact that the event admin
> bundle itself does not export anything that you would import. That is, you
> have bundle A that imports org.osig.srevice.event. If you then follow
> dependencies, that would not get you to the org.eclipse.equinox.event bundle
> since it does not export that package (it comes from the services bundle).
> However, if you change A to import org.eclipse.equinox.event and do Add
> Required bundles (or whatever) then org.eclipse.equinox.event will get added
> to a configuration you are running. Note however that taht package is
> internal and not intended to be used by you.
>
> This is a normal OSGi scenario and requires users to be careful when
> specifying the lineup of bundles taht are installed in a configuration.
> Going forward it would be interesting to factor in things like
> Import-Service into the computation of required bundles etc.
>
> Does this sound like it is your problem?
>
> Jeff
>
> "Gustavo Morozowski" <morova@bol.com.br> wrote in message
> news:pan.2006.01.31.18.17.53.556717@bol.com.br...
>> Hi,
>>
>> I have a bundle that uses event admin to post events. The only way I got
>> got Event Admin Service registered was declaring both
>> org.osgi.service.event and org.eclipse.equinox.event as Imported-Pakages
>> in the META-INF, instead of only declaring the osgi bundle as I expected.
>>
>> What is the proper way to do this? I'm using eclipse 3.2M4.
>>
>> Thanks
>>
>> Gustavo
Previous Topic:Declarative services
Next Topic:Is there a simple OSGi Bundle in Eclipse tree?
Goto Forum:
  


Current Time: Mon Jun 09 06:28:21 EDT 2025

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

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

Back to the top