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.


On Fri, Aug 22, 2014 at 8:15 PM, Sagara Gunathunga <sag...@wso2.com> 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: **az...@wso2.com* <az...@wso2.com>
* cell: +94 77 3320919 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*
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to