Tenant Implementation in Sling

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Tenant Implementation in Sling

Vineet
Hi all,

Is there any support added to ConfigAdmin as well so that an osgi service could have different configurations for different tenants, just like we have based on run-modes?
Reply | Threaded
Open this post in threaded view
|

Re: Tenant Implementation in Sling

Felix Meschberger-3
Hi Vineet

No, the OSGi Configuration Admin service does not know about the Sling Tenant API and has no other tenant awareness for that matter. Hence, out of the box, the OSGi Configuration Admin service is not directly tenant aware.

Configurations could be crafted, though, to simulate tenant awareness in that so-called factory configurations would be created, one per tenant. Actually feasibility would have to be evaluated on a configuration-by-configuration level.

Regards
Felix

Am 28.08.2014 um 10:31 schrieb Vineet <[hidden email]>:

> Hi all,
>
> Is there any support added to ConfigAdmin as well so that an osgi service
> could have different configurations for different tenants, just like we have
> based on run-modes?
>
>
>
> --
> View this message in context: http://apache-sling.73963.n3.nabble.com/Tenant-Implementation-in-Sling-tp4031217p4038579.html
> Sent from the Sling - Dev mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Tenant Implementation in Sling

Vineet
Thanks Felix.

But what I see in Configuration factory service, there is no method something like getConfiguration(String) where-in I could just pass tenantId and get the configurations back. I need to write a wrapper around that. Can you please shed some light on that, how to make it working with configuration factory service even?
12