[ 
http://jira.amdatu.org/jira/browse/AMDATU-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Offermans resolved AMDATU-498.
-------------------------------------

      Assignee: Jan Willem Janssen  (was: Marcel Offermans)
    Resolution: Fixed

This has proven to be more work than I thought. In hindsight, not having any 
tests for this resource processor has bitten us now. I did add a couple of 
tests, and I had to move around a lot of code in the implementation to fix all 
issues we identified. I'm afraid not much of the original code remained without 
tweaks.

However, everything is in the Felix codebase now. It implements the two 
features we needed: (1) being able to defer setting configuration until 
Configuration Admin(s) is/are available and (2) assigning configurations to 
specific Configuration Admin services if there are multiple.

The latter is fixed by allowing a "filter" attribute in the <MetaData> tag 
which can say something like:

{code}
<MetaData filter="(tenant.pid=abc)">
  <...>
</MetaData>
{code}

Such a configuration will be delivered to all matching Configuration Admin 
services that are available in the framework from the moment the transaction is 
committed until the moment the transaction is "complete". That is the interval 
in which bundles within that transaction are all (re)started, which means that 
as long as these bundles immediately register their services, we're fine. I 
decided against delivering further configurations after the transaction is 
"complete".

@JW please review (I would not be surprised if there are still small issues 
left, but right now I don't see them anymore)
                
> Finish the multi-tenant aware autoconf resource processor
> ---------------------------------------------------------
>
>                 Key: AMDATU-498
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-498
>             Project: Amdatu
>          Issue Type: Task
>            Reporter: Marcel Offermans
>            Assignee: Jan Willem Janssen
>             Fix For: Sprint 3
>
>
> The deployment-tenantconf bundle now contains a forked version of the 
> autoconf processor. The first thing that needs to be done is to finalize the 
> way this resource processor detects what tenant a configuration is for. 
> Furthermore, the patches should be donated back to Felix as some fixes are 
> also important for the non-tenant use case and it would be good if we don't 
> need to maintain two versions of this codebase.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
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

Reply via email to