correct dependencies for Event Admin [message #59102] |
Tue, 31 January 2006 13:18  |
Eclipse User |
|
|
|
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 #61206 is a reply to message #60473] |
Fri, 10 February 2006 12:59  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04178 seconds