On Sat, Aug 23, 2014 at 6:16 AM, Afkham Azeez <[email protected]> wrote:

> Some handlers would need to be called after transports are started. So, we
> could modify the interface to behave like the
> Axis2ConfigurationContextObserver, and have pre & post transport
> initialization methods.
>

+1, as I remember, ntask uses this to schedule the actual tasks at the very
last moment, and specific task implementations like our data services tasks
would require the transports to be available at that time.

Cheers,
Anjana.


>
>
> On Fri, Aug 22, 2014 at 8:15 PM, Sagara Gunathunga <[email protected]>
> wrote:
>
>>
>> According to current StartupFinalizerServiceComponent implementation, it
>> calls registered ServerStartupHandlers after starting transports but IMHO
>> it would be better to invoke ServerStartupHandlers before server start any
>> transports.
>>
>> We have a requirement to perform few tasks just before server startup
>> completion but before transport listeners get start. Further by looking at
>> API-M APIManagerStartupPublisher class ( which is one of the
>>  implementation of ServerStartupHandler interface) I think it would be much
>> better to add local APIs before start transports.
>>
>> Please refer the patch here[1]
>>
>> [1] - https://github.com/wso2-dev/carbon4-kernel/pull/84
>>
>> Thanks !
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;    http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **[email protected]* <[email protected]>
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to