Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problem with Declarative Service (DS)
Problem with Declarative Service (DS) [message #93686] Wed, 01 August 2007 16:20 Go to next message
Jaime is currently offline JaimeFriend
Messages: 56
Registered: July 2009
Member
Hi,

I've started to use Equinox Declarative Services but I've found two
problems:

- It's not possible to define two components in the same XML file (I'm
talking about the XML file referred in the Service-Component header of the
MANIFEST.MF). As a result, I have to create an XML file for each component
of a bundle. Is this the expected behaviour?.

- The most important problem is the following one. I have defined a
component with two service references. Each service reference defines two
methods: bind and unbind. I tried to use directly the service interface in
the bind/unbind method (in the Java code) but the behaviour was bad. These
methods were not invoked, although I checked that the services existed.
However, all changed when I included a org.osgi.framework.ServiceReference
instead of the service interface in the bind/unbind methods.

Does anyone practise with DS?. Should we wait for the "green" status?.

Jaime
Re: Problem with Declarative Service (DS) [message #93805 is a reply to message #93686] Wed, 01 August 2007 20:20 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Jaime wrote:
>
> Does anyone practise with DS?. Should we wait for the "green" status?.
>
> Jaime
>
>

Are you using the DS from the incubator contributed by prosyst or the
original DS implementation in Equinox. If you are not using the prosyst
implementation please give it a try. You need to following projects
from the CVS repo dev.eclipse.org:/cvsroot/eclipse

equinox-incubator/org.eclipse.equinox.ds
equinox-incubator/org.eclipse.equinox.util

Please don't wait for a "green" status ;-) We need community help to
flush out any bugs. If you still find issues with this implementation
please open bugs against Eqiunox->Incubator. Thanks.

Tom.
Re: Problem with Declarative Service (DS) [message #93819 is a reply to message #93805] Wed, 01 August 2007 20:37 Go to previous messageGo to next message
Jaime is currently offline JaimeFriend
Messages: 56
Registered: July 2009
Member
Thanks Tom,

I used the Eclipse's implementation:
http://download.eclipse.org/eclipse/equinox/drops/S-3.3RC4-2 00706081718/download.php?dropFile=org.eclipse.equinox.ds_1.0 .0.v20070226.jar

Anyway, I'll try the CVS version and comment my results here.

Jaime

"Tom Watson" <tjwatson@us.ibm.com> escribi
Re: Problem with Declarative Service (DS) [message #93860 is a reply to message #93805] Wed, 01 August 2007 21:19 Go to previous messageGo to next message
Jaime is currently offline JaimeFriend
Messages: 56
Registered: July 2009
Member
Hi again,

I've just checked the Prosyst plugin (from CVS) and I suffer the same
problems. The main difference is that now (with the Prosyst plugin), I have
to start the DS plugin manually (I don't know why).

Anyway, I have to test it more carefully before opening any bug.

Jaime

"Tom Watson" <tjwatson@us.ibm.com> escribi
Re: Problem with Declarative Service (DS) [message #94081 is a reply to message #93860] Fri, 03 August 2007 16:39 Go to previous message
Jaime is currently offline JaimeFriend
Messages: 56
Registered: July 2009
Member
I've just opened a bug (it's my first Eclipse bug so I'm not really sure
that it's in the correct place):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198822

Finally, the bug is only related to the problem with two components in the
same XML component description. I've checked that it's possible in
Knopflerfish.

I haven't opened the other bug because currently it works (the most
important one). I cannot understand why it works now, because I didn't
change anything :(. Perhaps this problem will appear again in the future.

Jaime

"Jaime" <jjjaimeosgi@gmail.com> escribi
Previous Topic:Server-side update of features
Next Topic:Equinox Provisioning M1 installer
Goto Forum:
  


Current Time: Thu Apr 25 15:47:05 GMT 2024

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

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

Back to the top