Spring server start-up event

Posted by jia on Stack Overflow See other posts from Stack Overflow or by jia
Published on 2012-06-20T09:12:22Z Indexed on 2012/06/20 9:16 UTC
Read the original article Hit count: 182

Filed under:
|
|

i am facing a problem. I am using tomcat server for my spring maven project and i want to subscribe my application to facebook once when server starts up. I have tried ApplicationListener ContextRefreshedEvent. It gets invoked on application context initialization, but the issue is at that time my server has not completely started and hence my application is not publically accessible which is required in my case as facebook subscription requires verification using application public URL. So i want to do subscription when my server gets started completey and not on application context initialization. Any idea how can i do it? Do i have nay application level event listener that can tell me that server has started completely?

Regards jia

© Stack Overflow or respective owner

Related posts about spring

Related posts about server