Link to home
Start Free TrialLog in
Avatar of cosmic_bird
cosmic_bird

asked on

JMS or SMS?

Hi, I want to include a messaging facility in my application. This will be used simply for incoming alerts from a system. So the system in this case  a traffic alert system will use servlets to send traffic alerts in the form of messages. At the client end the user will receive the alert in message format, i.e, they select the message to read it.

In the above situation what form of messaging would you suggest SMS or JMS?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

What medium are the clients in? Obviously a browser can't get an SMS message...
Avatar of cosmic_bird
cosmic_bird

ASKER

The client's on a midlet. It's a bit of a head scratcher to be honest with you.
Actually to be be more precise, I can send the content of the desired message to the midlet. What's invovled in wrapping the text into a message format?
Well to be honest - midlets are not my thing. I'm sure somebody'll be along sooner or later though ;-)
What messaging formats does the midlet support, if any?
"What messaging formats does the midlet support, if any? "

it has a wireless messaging api available for sms.
Sounds applicable then ;-) Do you know of any JMS implementations for J2ME?
yeah I don't think I should too much trouble implementing this section-  hopefully. To be honest I've never really heard of JMS, Since it does have the WMA API - then probably sms isd the way too go.

Do bear in mind that the client won't actually be sending any sms messages, just receiving them. So it's probably a matter of invoking the servlet to respond to the midlet request with SMSs, or ideally the servlet automatically send SMSs to the midlet without the midlet invoking the servlet. This requires though the devices number.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This article's a good fit for what you want to do:

http://www-106.ibm.com/developerworks/wireless/library/wi-extendj2me/
What are your target handsets?  SMS is only available in handsets that have WMA implementations (basically, you're only looking at the few MIDP-2.0 handsets that are available at the moment).

If you want something that's going to work on MIDP-1.0 (ie. the vast majority of currently available Java-enabled handsets), then the only supported protocol is http.  This shouldn't be too much of a problem, since you should be getting the server to do the bulk of the work.

What information are you intending to pass around?
i have recently finished a smsServer app where by sms'es are sent via a gsm modem, i presume you are using one?

if you are.. check out the api i used at www.jsmsengine.org
tell me if you are on a FreeBSD box cause it gets a bit tricky then.
Fuzzy_VB - thanks for your reply.....  I'm not really up to date on the networking side of things like gsm modem. My system is perhaps a more simpler concept. It's really just about arranging data extracted from a database by the servlet into a convenient message format for the client to receive on the mobile applcation. However I will investigate the jsmengine
how do you suggest you will send that message to the mobile?
if you are not using a gsm modem then another option is to send it to a bulksmsing website via parameters?

or am i missing something?

-Fuzz ;)
8-)