Sending/Receiving SMS on a J2EE Web Application

Sending/Receiving SMS on a J2EE Web Application SearchSearch
Author Message
Mahaboob Basha
New member
Username: Basha

Post Number: 4
Registered: 11-2008
Posted on Thursday, November 27, 2008 - 01:14 pm:   

hi friends

i have developed an application for bank accounts. Its a web application and my server is Tomcat 5.0. my requirement is that user
could sms (from their mobile) to my application. In the SMS they will provide their account no and in response my application will send a sms
to their cell phone giving them their current balance.can one send me the code for this...

Now im very new to this mobile technology. im confused that whether i have to use J2ME or JMS or what. And what other things i require.
The Mobile and application has to do nothin with each other(means they r not connected in any way).
So i think i need services from a Service Provider. But from technology pt of view what i'll use??

If any body knows which tech. to use and flow of such application pls help.

and i connected my mobile as a modem and we r using nowsms as a gateway
thanx...
basha
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 272
Registered: 08-2008
Posted on Friday, November 28, 2008 - 03:28 pm:   

Hi,

Yes, you need connectivity to an SMS service provider that supports bi-directional (both sending and receiving) SMS.

Initially you could prototype this with a GSM modem. A GSM modem is a specialized type of modem which accepts a SIM card, and operates over a subscription to a mobile operator, just like a mobile phone. From the mobile operator perspective, a GSM modem looks just like a mobile phone.

However, a GSM modem exposes an interface that allows applications such as NowSMS to send and receive messages over the modem interface. The mobile operator charges for this message sending and receiving as if it was performed directly on a mobile phone.

There are some mobile phones that expose a GSM modem interface, but you're best off with a dedicated GSM modem device such as one from Multitech, Falcom/Samba, iTegno or Wavecom.

NowSMS is middleware software which can send and receive SMS messages using one or more GSM modems and/or one or more SMS service provider connections using SMPP, UCP/EMI or CIMD2.

The "2-way" command facility is how NowSMS would interface with your application. When NowSMS receives a message, it would pass the details of the message to your application via an HTTP request. Your application can then respond back to the request with the text that it wants to send in reply.

If you're using a GSM modem, end users would send an SMS message in to the phone number of the GSM modem.

When you migrate to using an SMS service provider, you would typically purchase rights to a short code that users would send to instead of a phone number.

Here are a few links:

Basic info, "What is NowSMS?"

http://www.nowsms.com/whatisnowsms.htm

2-way SMS overview:

http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm

Simple 2-way SMS examples, focused on PHP:

http://support.nowsms.com/discus/messages/1/4520.html



--
Des
NowSMS Support