Who says a tomcat server would accept an SMS?
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Well, hopefully you have a handy attached to the Server running the Tomcat.
IOW, AFAIK, you need some sort of Gateway to send/receive sms messages from the computer. There are some sites out there that let you do so (and you may be able to use them as a proxy, but if they find out you are using it for a commercial app, it would be probably get very expensive, very quickly), but to do it on your own, you are going to need a modem, not just a connection to the internet. And the use of this modem has nothing to do with Tomcat.
Check out this for more info (although not Java related it has some good general info) http://www.developershome.com/sms/
Edit: Nevermind, I see you are using a gateway. But, if that is an internet SMS gateway, what do you need your mobile for? You should be able to use it using HttpUrlConnection, right?
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Read the article I gave you.
And if you are receving through the handy, why don't you also send through the handy?
Conversly, if you are sending through nowsms, why are you not receiving through nowsms?
If they don't provide a reception service, then find a different gateway.
Edit: Of course, I hope you have some very, very, very good authentication system for this, as I am sure the customers would not want their balances to be broadcast to anyone with an sms service.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494