beautypg.com

Wireless messaging api (wma), Sms client mode and server mode connection – Motorola HANDSET C381P User Manual

Page 41

background image

10
JSR
120 – Wireless Messaging API

41

10

JSR 120 – Wireless Messaging

API

Wireless Messaging API (WMA)

Motorola has implemented certain features that are defined in the Wireless Messaging
API (WMA) 1.0. The complete specification document is defined in JSR 120.
The JSR 120 specification states that developers can be provided access to send (MO –
mobile originated) and receive (MT – mobile terminated) SMS (Short Message Service)
on the target device.
A simple example of the WMA is the ability of two J2ME applications using SMS to
communicate game moves running on the handsets. This can take the form of chess
moves being passed between two players via the WMA.

Motorola in this implementation of the specification supports the following features.

ƒ

Creating a SMS

ƒ

Sending a SMS

ƒ

Receiving a SMS

ƒ

Viewing a SMS

ƒ

Listening to a SMS

SMS Client Mode and Server Mode Connection


The Wireless Messaging API is based on the Generic Connection Framework (GCF),
which is defined in the CLDC specification 1.0. The use of the “Connection” framework, in
Motorola's case is “

MessageConnection

”.

The

MessageConnection

can be opened in either server or client mode. A server

connection is opened by providing a URL that specifies an identifier (port number) for an
application on the local device for incoming messages.