Didn't you try by adding an activate method register inside? Because
usually in osgi you need ComponentContext to register services which is
available in activate method.

Regards,

On Tue, May 26, 2015 at 10:36 AM, Damith Senanayake <dami...@wso2.com>
wrote:

> Hi,
>
> I am trying to make a custom UserOperationEventListener, and want to
> register it as an OSGI service in the carbon.user.core component.
>
> I referred to carbon.identity.mgt component to see how the Identity
> management listener is registered. I saw that it was instantiated and
> registered in the IdentityMgtServiceComponent.activate() method.
>
> However, the UMListenerComponent in carbon.user.core.internal doesn't have
> an activate method written or defined.
>
> In this case how can I register the custom listener as a service?
>
>
> Thanks
>
> --
> *-Damith Senanayake-*
> +94712205272
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Tharik Kanaka* | Associate Software Engineer

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: tha...@wso2.com | Web: www.wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to