I have made a similar system, but i use a SMS gateway connected to my JBoss Server via serial port to send messages.
As far as i know you can not send SMS messages without somehow hooking into the cell network. Atleast with my provider here in Norway. J2ME probably has a api for sms messaging, but thats probably because J2ME is ment to be on a Cellphone that is hooked into the cell network hence it can send messages.
When i was prototyping my sms service i used a nokia 5100 and IR port to test diffrent solutions. It's basically a set of AT commands to send/read messages. Java comm api to use the serial port and your good to go.
If you have a phone with serial connection and/or IR you can most likely find the phones AT Commands on their web site. Most of them follow the ETSI SMS standard tough, with minor modifications. I prototyped on a nokia and my final product with minor adjustments runs on a Siemens MC 35 SMS gateway.
--
Thomas
Message was edited by:
thfs
> i just need to have java
> Comm api to send and receive SMS or still need other
> technology?
The java comm api is to do serial communication. You will still need a way to reach the SMS messagecentre number for the cellular provider you choose to use. I use a ETM 9200 SMS Gateway (based on a siemens mc 35 cell phone) to do this. I simply use the java comm api to send commands and receive responses from the ETM 9200 sms gateway. My software (written in java) handles the sms messages i receive trough the gateway and produces a proper response wich it sends back to the phone via the SMS gateway.
URL's:
Java Comm api:
http://java.sun.com/products/javacomm/
MC35 sms terminal:
http://www.ozeki.hu/SMS_Server_6/How_to_buy/Hardware/Wavecom_Fastrack/index.php?ow_page_number=767
Sweedish producer:
http://www.etmm.se/index.php?page=/products/products.php&menu=products_gsm_menu&subpage=gsm/products_gsm_etm9300
Couldn't find the AT command reference for MC35 atm, but you should find it if you google for it.
> Hai,
> is it necessary to register with SMS provider just
> can send or receive SMS. or i have another way
> without SMS provider? i am using java to do my
> final year project. Since register with SMS Provider
> need to pay some money.
I just used a prepaid GSM cellphone card cost me 150 Norwegian. Can send about 150 messages at 1 kr a message, with that.