This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

jSMSEngine to send sms doesn't work in webapplication why?

 
Ranch Hand
Posts: 79
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ganesh Pat wrote:I have copied all javax.properties n comm jar n win32.dll


To be honest, you've used so many needless abbreviations that I have no idea what you are saying here.

Please use real words when posting to the forums. Abbreviations such as "n" in place of "in" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please click this link ⇒ UseRealWords for more information.
 
Ganesh Pat
Ranch Hand
Posts: 79
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ Marshal ya sure
 
Sheriff
Posts: 24654
58
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using the ancient Sun version of comm.jar to communicate with your server's serial port, then quite likely (contrary to what I think you said) you put the components into the wrong place. Or perhaps your instance of Tomcat isn't authorized to access the serial port. Or perhaps any one of numerous possible error situations could have arisen.

You didn't say anything about looking in the logs for error messages. I would suggest you start by doing that.
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!