How to use EnquireLink class to check SMSC connection status
Posted: Tue Nov 30, 2010 10:35 am
Hello everyone!
The method i am using to send messages is connecting gateway, binding it, sending messages through submitAsync and disconnecting gateway. Since i use multiple operators, i follow the same process for all the operators.
I have created a windows service that handles all this and go on continously doing so. My operators complain me that in a minute over 100 bind and unbind happens from my ID, which choks uo the server. In fact, they suggest me to keep the connection always open (i.e. not to disconnect it ) and use enquire link to check whether smsc is connected or not.
Please help me by some example code how to make use of enquire link.
Urgent help is needed!
Please do the needful at earliest.
Kind Regards!
The method i am using to send messages is connecting gateway, binding it, sending messages through submitAsync and disconnecting gateway. Since i use multiple operators, i follow the same process for all the operators.
I have created a windows service that handles all this and go on continously doing so. My operators complain me that in a minute over 100 bind and unbind happens from my ID, which choks uo the server. In fact, they suggest me to keep the connection always open (i.e. not to disconnect it ) and use enquire link to check whether smsc is connected or not.
Please help me by some example code how to make use of enquire link.
Urgent help is needed!
Please do the needful at earliest.
Kind Regards!