Hi Thusitha, Thank you for the information. My requirement is actually to deploy some APIs upon server startup to the API gateway. And the authentication admin service is accessed during this process. Although transports are activated before ServerStartupObservers are notified, there's seems to be a slight delay before the admin service starts listening on the port. So the issue arises since the service gets called immediately after the ServerStartupObserver is notified.
Best Regards, Amanda On Thu, Feb 22, 2018 at 3:17 PM, Thusitha Thilina Dayaratne < thusithathil...@gmail.com> wrote: > Hi Amanda, > > AFAIK ServerStartupObservers get notify after the transport activation. > >  - https://github.com/wso2/carbon-kernel/blob/4.4.x/core/ > org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/internal/ > StartupFinalizerServiceComponent.java#L209 > > Thanks > > On Thu, Feb 22, 2018 at 6:25 PM, Amanda Jayanetti <aman...@wso2.com> > wrote: > >> Hi all, >> >> For a task that I'm currently working on, authentication admin service >> needs to be called right after server startup. >> >> I'm using ServerStartupObserver for registering a listener which invokes >> the function from which the admin service gets called. But at the time this >> function gets invoked, the authentication admin service though deployed, is >> not accessible since transports have not been activated. >> >> Any suggestions/thoughts on how the above issue can be resolved is highly >> appreciated. >> >> Best Regards, >> Amanda >> -- >> *Amanda Jayanetti* >> Software Engineer >> WSO2, Inc.; http://wso2.com >> >> Mobile: +9471957591 <+94%2071%20185%202792>1 >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > > -- *Amanda Jayanetti* Software Engineer WSO2, Inc.; http://wso2.com Mobile: +9471957591 <+94%2071%20185%202792>1
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev