You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2010/02/03 11:49:28 UTC

[jira] Created: (FELIX-2031) Services should be registered asynchronously

Services should be registered asynchronously
--------------------------------------------

                 Key: FELIX-2031
                 URL: https://issues.apache.org/jira/browse/FELIX-2031
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-event-plugin-0.9.0
            Reporter: Carsten Ziegeler
            Assignee: Carsten Ziegeler
             Fix For: webconsole-event-plugin-1.0.0


Some services are (un)registered during receival of a service event which is send synchronously. To avoid any problems these operations should be done asynchronously - when doing things synchronously I experienced a strange delay of exactly one minute.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-2031) Services should be registered asynchronously

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-2031.
-----------------------------------


> Services should be registered asynchronously
> --------------------------------------------
>
>                 Key: FELIX-2031
>                 URL: https://issues.apache.org/jira/browse/FELIX-2031
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-event-plugin-0.9.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: webconsole-event-plugin-1.0.2
>
>
> Some services are (un)registered during receival of a service event which is send synchronously. To avoid any problems these operations should be done asynchronously - when doing things synchronously I experienced a strange delay of exactly one minute.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-2031) Services should be registered asynchronously

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-2031.
-------------------------------------

    Resolution: Fixed

Fixed in revision 905985

> Services should be registered asynchronously
> --------------------------------------------
>
>                 Key: FELIX-2031
>                 URL: https://issues.apache.org/jira/browse/FELIX-2031
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-event-plugin-0.9.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: webconsole-event-plugin-1.0.0
>
>
> Some services are (un)registered during receival of a service event which is send synchronously. To avoid any problems these operations should be done asynchronously - when doing things synchronously I experienced a strange delay of exactly one minute.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2031) Services should be registered asynchronously

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829062#action_12829062 ] 

Carsten Ziegeler commented on FELIX-2031:
-----------------------------------------

The registration is done in this way as the required classes (event package or config package) might not be available.
The registration is not delayed - the service listener gets an event that the event admin is available and then registers (delay) an event handler.
If the service listeners gets an event that the event admin is gone, the event handler is unregistered (again delayed).
So this shouldn't create a problem.

> Services should be registered asynchronously
> --------------------------------------------
>
>                 Key: FELIX-2031
>                 URL: https://issues.apache.org/jira/browse/FELIX-2031
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-event-plugin-0.9.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: webconsole-event-plugin-1.0.0
>
>
> Some services are (un)registered during receival of a service event which is send synchronously. To avoid any problems these operations should be done asynchronously - when doing things synchronously I experienced a strange delay of exactly one minute.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2031) Services should be registered asynchronously

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829060#action_12829060 ] 

Felix Meschberger commented on FELIX-2031:
------------------------------------------

Just a thing to comment: While it is not a problem to delay acceptance of a newly registered service, delaying the release of an unregistering service might create issues. In the Rev. 905985 the window is actually half a second in which the service having gone might still be accessed...

What I do not understand is, why the Configuration Admin and Event Admin services are bound and why the ConfigurationListener and EventHandler services are only registered when the admin services exist ... I think the OptionalFeaturesHandler could just register the two services and be done.

> Services should be registered asynchronously
> --------------------------------------------
>
>                 Key: FELIX-2031
>                 URL: https://issues.apache.org/jira/browse/FELIX-2031
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-event-plugin-0.9.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: webconsole-event-plugin-1.0.0
>
>
> Some services are (un)registered during receival of a service event which is send synchronously. To avoid any problems these operations should be done asynchronously - when doing things synchronously I experienced a strange delay of exactly one minute.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2031) Services should be registered asynchronously

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829068#action_12829068 ] 

Felix Meschberger commented on FELIX-2031:
------------------------------------------

I see, people with reading abilities definitely have advantages..... Sorry for the noise.

> Services should be registered asynchronously
> --------------------------------------------
>
>                 Key: FELIX-2031
>                 URL: https://issues.apache.org/jira/browse/FELIX-2031
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-event-plugin-0.9.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: webconsole-event-plugin-1.0.0
>
>
> Some services are (un)registered during receival of a service event which is send synchronously. To avoid any problems these operations should be done asynchronously - when doing things synchronously I experienced a strange delay of exactly one minute.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.