hi friends excuse me if i am posting a basic qustion, but please reply answer or hint...
i am working on flight booking system. So we request for specific flight ticket to our vendor. we send XML request to vendor. After that vendor do requested processing and save necessary changes in there database in vendor database. vendor not send any response to our side. here booking task completed. Now we need to know status of that booking requested that will change from pending to success on vendor database. We have to fetch that by making XML request for ticket status to vendor.
But problem here is, after flight booking i need to show my website visitor the status of booking request and status will change on vendor server within 2 to 30 minutes.
So is it possible that i can call one function from my
java program and send response page to web site user and that function will keep running in background on my server 6 times with interval of 5 minutes. So when status change i can store that in my server database.
i did some home work on this, and i know that i can use
thread and keep them sleep for 5 minutes with max 6 times until i got response. but can anybody suggest me how i create such process calling from my java program that will keep working in background on server.