Hi, 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.
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, Erik