SMS/MMS send and receive J2EE

SMS/MMS send and receive J2EE SearchSearch
Author Message
Mido
New member
Username: Lotusah

Post Number: 1
Registered: 11-2010
Posted on Saturday, November 20, 2010 - 11:03 am:   

Hello
I am a young student, I am spirit to make an application on the J2EE
I have come to send and receive SMS and MMS messages between two clients.
but my problem is to simulate the servers and SMS and MMS purpose of sending an SMS in the first place for the client to alert information and secondly to send a MMS which contains all the information.
So in short my problem is what type of server should I install to manage SMS and MMS for sending directly to the woman he every new customer information.
Thank you
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2661
Registered: 08-2008
Posted on Wednesday, November 24, 2010 - 05:20 pm:   

Hi Mido,

Unfortunately, I do not have any good suggestions with regard to operating on simulators. The problem is on the client/receiving end (J2ME). The simulators just don't have a full SMS/MMS protocol stack for being able to receive messages ... at least to the best of my knowledge.

You need to load your J2ME code on an actual phone to be able to send/receive messages.

If you wanted to have a J2EE application sending SMS and/or MMS messages to a device, then it needs to have a connection to an SMS gateway or GSM modem.

You can connect NowSMS or NowSMS Lite to a GSM modem, and interface to it through Java. (As a student, you could try the 60-day trial version of NowSMS for doing this.)

Java API information for sending SMS and/or MMS can be found here:

http://www.nowsms.com/faq/api

Note that if you want to send a message to a J2ME application on a phone, you need to use port-addressing (or application-addressing for MMS), so that the message is addressed to an application instead of the standard inbox. More information on that can be found here:

http://www.nowsms.com/tag/port-addressing

I don't have any examples of receiving a message on the J2EE side. When NowSMS receives a message from a GSM modem, we refer to this as 2-way SMS. NowSMS can either pass the received message to a command line program for parsing or to an HTTP URL (Java HttpServletRequest). More detail can be found on the API page ... just no Java specific examples, I'm afraid.

--
Des
NowSMS Support