You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Guillaume Nodet <gn...@gmail.com> on 2009/05/07 12:30:04 UTC

Re: Corner case where ServiceListener do not receive events for matching services

Oops, posted to the wrong list, sorry.

On Thu, May 7, 2009 at 12:29, Guillaume Nodet <gn...@gmail.com> wrote:
> I've just finished debugging a corner case in karaf  where a
> ServiceListener did not receive events when a matching service was
> registered.
> The problem is not very simple:
>   * the service is exposed via a ServiceFactory
>   * the service factory does not belong to the same classloader as
> the interface of the exposed service
>   * the bundle exporting the service does not have a direct import on
> the interface exposed
>
> This leads to the service listener not being invoked because
> Util.isServiceAssignable() returns false.
> I think it's a problem, but I've no idea how to solve it.  The only
> way I can think about is to actually check the service class returned
> by the factory instead of the factory, but it may cause side effects,
> not sure.
>
> Thoughts?
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com