i have developed a system which needs to process funds transfer using means of mobile phone sms(short message sent). my problem is that i don't know how to intergrate the application with the sms gateway. suppose sms has been sent through the gateway,what will trigger the system to respond since message from phone enters database directly.give me some light on this please!

So your question is how would your app know when a sms has been received? Why don't you check the db every few secs or something?