File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Java Application communicating via SMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java Application communicating via SMS" Watch "Java Application communicating via SMS" New topic

Java Application communicating via SMS

Lindikaya Ntshinga

Joined: Jan 15, 2003
Posts: 7
I would like to develop an Java application that waits/listens for an SMS from GSM mobile devices. Once the app recieves the message it extracts the text pay load and excutes the necessary business logic.
I would like to know:
* How does the cellphone know the cel number of the Java/j2ee app when sending the msg.
* Do I need to pay the carrier or do I need any special configurations on my application in order to send and recieve SMS.
* Can messages actually be sent to Java application by normal non-J2ME enabled phones
* Can the app extract the payload if the message is not coming from a non-Java phone.
Please help.
Erik Pragt
Ranch Hand

Joined: Sep 08, 2001
Posts: 125
Hello Lindikaya Ntshinga,
Your question has actually nothing to do with J2ME. I will explain why.
Any (well, more than 99%) telephone can send SMS messages, which has nothing to do with Java. Normally, J2ME applications run on Java handsets like mobile phone. What you want is to have a Java application connected to a mobile phone.
In order to have something like this is to connect a mobile phone through a serial cable to a desktop (or similar) machine, and have then communicate to each other.
Thus, to answer you first question: the number of the java application is the number of the mobile phone connected to the application.
The second question: You (and others) need to pay to send messages, not to receive them.
Third: Yes, as we are talking about simple sms communication..
4) This is the hardest part. I have absolutely no idea how the telephone will communicate to the desktop machine throught the serial cable (if this is the way). You'd might have a J2ME application for this which responds to incoming SMS messages, opens an http connection to your Java application, and transfers the data. But I don't know if this is possible.
I hope this can give you a push into the right direction!
Good luck,
Max Khukhro

Joined: Apr 13, 2003
Posts: 17
Java library for your puposes
I agree. Here's the link:
subject: Java Application communicating via SMS
It's not a secret anymore!