This is a generic OSGi service question, I think.  We use a mix of
Spring-DM and Felix-SCR for services, but have never had an issue like
this.

Are there any circumstances where a service won't be found by someone
looking for it?  My impression is that services are referenced by a
string version of their class name, so there shouldn't be class
loading differences, right?

Basically, we have this structure:

bundle mvc.framework
 IView
 ICommand
 ... and a couple of services looking for instances of those interfaces.

bundle authentication.ui
 AuthenticationView implements IView
 AuthenticationCommand implements ICommand

For some reason, AuthenticationCommand gets found by the service
looking for ICommand interfaces, but AuthenticationView does not.
When I do a "services" on authentication on the felix cmd line, both
are showing properly.  But when I do a "services -u" on mvc.framework,
only AuthenticationCommand shows up.

This feels like some filtering is in place, but we've stripped all of
that out.  This code is only 2 days different from a working version
of our spring-dm context files, and we can't see what's going on.

Pat.

-- 
Defy mediocrity.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to