|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
_______________________________________________ Amdatu-developers mailing list [email protected] http://lists.amdatu.org/mailman/listinfo/amdatu-developers


What I'm trying to achieve is writing a bundle that contains both tenant unaware and tenant aware services. So I do have a regular OSGi bundle, with some normal services and services that adapt Tenant. The relevant parts of the Activator:
manager.add(
createComponent()
.setInterface(ManagedService.class().getName(), null)
...
.add(createConfigurationDependency().setPid(org.amdatu.opensocial.shindig));
);
manager.add(
createAdapterService(Tenant.class, null)
setInterface(OpenSocialContainer.class.getName(), null)
...
);
Now if I add the X-MultiTenant properties to the pom and register this bundle with binding PLATFORM, the tenant aware service is only instantiated for the PLATFORM tenant, which is the only service I do not want to register the service for.
If I leave out the X-MultiTenant stuff, the configuration file is not bound to my ManagedService (I left out the filter attribute in that case).