JSR-120 : Push messages

This is a neat little feature that we worked on as part of JSR-120. I imagine this could be a very useful feature in the Communications Arena. Should you have a MIDP 2.0 + JSR-120 enabled phone, you can send SMS messages to that phone to launch a Java application. This may lead us to a RIM-like device which we can push e-mails and appointments to a Communication client. Phones which support JSR-120: Motorola RAZR v3 Sony Ericsson P900/P910 (wow a reason for me to finally upgrade my p800!) Panasonic x700 Nokia 6600, 7610, 9500/9300, 6630 Java Presentation from Symbian [click here] Snipet from Nokia's Developer Newsletter.. Developers can write Mobile Information Device Profile (MIDP) 2.0 applications that handle incoming Short Message Service (SMS) data, even if the MIDlet is not running when the data arrives. Just add two attributes in the Java™ Application Descriptor (JAD) file and use a couple of key methods in the Wireless Messaging API (JSR-120). Include the following attributes in your JAD file to associate an incoming SMS port with your MIDlet: MIDlet-Permissions: javax.microedition.io.PushRegistry MIDlet-Push-1: sms://:7500, WMAExample, \* Then use the following methods to process the incoming message: public void messageReceivedHandler ( TextMessage receivedMessage) { String senderAddress = receivedMessage.getAddress(); String receivedMessageBody = receivedMessage.getPayloadText();
Comments:

Hi,

I have a doubt as the port numbers ranging from
8 bit ports are from 240 to 255.
16 bit ports are from 3500 to 5500
and also has a higer value range from 16000

are for applications then how come we can use 7500 as port num for sms/push apps.

kindly let me know

regards,
kusuma

Posted by kusuma on July 01, 2008 at 04:53 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

I'll be writing about topics that would interest users and developers of Sun Java Communication Suite.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today