[ 
https://issues.apache.org/jira/browse/ARIES-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15562182#comment-15562182
 ] 

Grzegorz Grzybek commented on ARIES-1407:
-----------------------------------------

So I'm afraid everything is fine. Registration Listener triggers when service 
is created in OSGi registry. in case of ServiceFactory, the moment is when 
ServiceFactory.getService() is called. If you reference your service in some 
singleton, eager bean or use it in some SCR component via {{@Reference}}, your 
listener whould have been called.

If you want to simulate something that I'm thinking you want to achieve, try 
creating ordinary {{<bean>}} with reference to e.g., event admin and publish 
some event there.

> Service (un)registration listener not called anymore
> ----------------------------------------------------
>
>                 Key: ARIES-1407
>                 URL: https://issues.apache.org/jira/browse/ARIES-1407
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>         Environment: Servicemix 5.4.1
>            Reporter: metatech
>         Attachments: blueprint_registration_listener_fix_v2.patch
>
>
> Service (un)registration listeners are not called anymore since Blueprint 
> 1.4.0.
> There are 2 booleans in the "ServiceRecipe" class which are tested against 
> the wrong values.
> Please find a patch which makes them work again with Blueprint 1.4.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to