hii frnds i have used jsmsengine to send sms.I have copied all javax.properties n comm jar n win32.dll in appropriate folders when i create an object of this class in same file i.e SendMessage.java it send sms but I want to fetch mobile number from database and send sms to that mobile no.
Actually its a website , i used apache
tomcat for that , but when i click on link show in my site which fetches record correctly then i used fetched mobile no to send sms like this first created class
SendMessage s=new SendMessage() ;
s.sendSms("9999999999","Hell0"); //(Mob no,msg) n sendSms is a method in that class to send sms
but this doesnt send but when i run that SendMessage file code separately by creating main method in that it works why?
and in last in that it has code System.exit(0) i think which shutting my apache tomcat so i commented that please need help