You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Snorre Lothar von Gohren Edwin <sn...@gmail.com> on 2013/12/07 18:10:23 UTC

DS unsetting the wrong services

Hi

Im currently using DS in my application and I have a Hardware Driver which
is registered as a service. The only bundle using this service is a
consumer of multiple services.
The hardware driver is not used at any other place than at the consumer.

But what I experience is that when I stop the hardware driver, it unsets
all the three services the consumer is referencing. When its only the
hardware bundle which is stopped.

My DS component XML can be found here:
https://gist.github.com/Snorlock/7845460

Right now I wonder what might be some reasons for this componen to drop all
services when one of the services disapear?
Is it because of some of my configurations, such as static, 1..1 or
something?

I would like the service to only call the unset method for that partiucalr
service, not all three referenced.


-- 
Mvh
Snorre Lothar von Gohren Edwin
MeetMe: http://doodle.com/vonGohren
+47 411 611 94

Re: DS unsetting the wrong services

Posted by Snorre Lothar von Gohren Edwin <sn...@gmail.com>.
Thx, it was the solution. I just havent played to much with DS yet I guess.


On Sat, Dec 7, 2013 at 7:10 PM, Justin Edelson <ju...@justinedelson.com>wrote:

> Hi,
> Your component is configured with three mandatory (1..1), static
> references. This means that all three services must be available for
> your compnent to be activated. Thus when one of those services goes
> away, all three references are unbound and the component is
> deactivated.
>
> It sounds like the hardware service reference needs to be optional and
> dynamic.
>
> Regards,
> Justin
>
> On Sat, Dec 7, 2013 at 12:10 PM, Snorre Lothar von Gohren Edwin
> <sn...@gmail.com> wrote:
> > Hi
> >
> > Im currently using DS in my application and I have a Hardware Driver
> which
> > is registered as a service. The only bundle using this service is a
> > consumer of multiple services.
> > The hardware driver is not used at any other place than at the consumer.
> >
> > But what I experience is that when I stop the hardware driver, it unsets
> > all the three services the consumer is referencing. When its only the
> > hardware bundle which is stopped.
> >
> > My DS component XML can be found here:
> > https://gist.github.com/Snorlock/7845460
> >
> > Right now I wonder what might be some reasons for this componen to drop
> all
> > services when one of the services disapear?
> > Is it because of some of my configurations, such as static, 1..1 or
> > something?
> >
> > I would like the service to only call the unset method for that
> partiucalr
> > service, not all three referenced.
> >
> >
> > --
> > Mvh
> > Snorre Lothar von Gohren Edwin
> > MeetMe: http://doodle.com/vonGohren
> > +47 411 611 94
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
Mvh
Snorre Lothar von Gohren Edwin
MeetMe: http://doodle.com/vonGohren
+47 411 611 94

Re: DS unsetting the wrong services

Posted by Justin Edelson <ju...@justinedelson.com>.
Hi,
Your component is configured with three mandatory (1..1), static
references. This means that all three services must be available for
your compnent to be activated. Thus when one of those services goes
away, all three references are unbound and the component is
deactivated.

It sounds like the hardware service reference needs to be optional and dynamic.

Regards,
Justin

On Sat, Dec 7, 2013 at 12:10 PM, Snorre Lothar von Gohren Edwin
<sn...@gmail.com> wrote:
> Hi
>
> Im currently using DS in my application and I have a Hardware Driver which
> is registered as a service. The only bundle using this service is a
> consumer of multiple services.
> The hardware driver is not used at any other place than at the consumer.
>
> But what I experience is that when I stop the hardware driver, it unsets
> all the three services the consumer is referencing. When its only the
> hardware bundle which is stopped.
>
> My DS component XML can be found here:
> https://gist.github.com/Snorlock/7845460
>
> Right now I wonder what might be some reasons for this componen to drop all
> services when one of the services disapear?
> Is it because of some of my configurations, such as static, 1..1 or
> something?
>
> I would like the service to only call the unset method for that partiucalr
> service, not all three referenced.
>
>
> --
> Mvh
> Snorre Lothar von Gohren Edwin
> MeetMe: http://doodle.com/vonGohren
> +47 411 611 94

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org