10

JSR 120 – Wireless Messaging API

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.

41

Page 41
Image 41
Motorola C381P JSR 120 Wireless Messaging, Wireless Messaging API WMA, SMS Client Mode and Server Mode Connection