aspose file tools*
The moose likes Product and Other Certifications and the fly likes WMA related questions ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "WMA related questions !" Watch "WMA related questions !" New topic
Author

WMA related questions !

Reghu Ram Thanumalayan
Ranch Hand

Joined: Oct 21, 2003
Posts: 193
Hello All,
I am confused on some parts of the WMA Spec. Kindly clarify my questions listed below.

1. From the push registry contract it's clear that, the AMS is not responsible for incoming connections once the MIDlet has started and the AMS starts listening for incoming connections only when the MIDLet is destroyed. Does this mean that, when the MIDlet is in paused state, neither the MIDlet nor the AMS is listening for incoming data ???

2. For use of push registry with WMA - SMS, the connection url has to be a server mode connection (sms://:5876), what will happen if a client mode connection is specified in the Push Registry parameter in case of static push registration and for dynamic registration.

3. For untrusted midlets, we need not specify the permissions explicitly and also the HTTP & HTTPS connections (mandatory) could be granted with explicit user approval. What is the case for WMA related operations like SMS connection open, send, receive as well as other connections like Socket,Datagram etc. Will the MIDlet ask for explicit user permission if used or throw any SecurityException since these are not mandated?

4. In case of GSM SMS, the SMSC ( the short messaging service center) number can be obtained as a system property. Is this number included anywhere in the payload of the sms as i assume that the device first forwards the sms to this number (Store and forward approach) or is it upto the device implementation to take care of it ?
[ June 12, 2006: Message edited by: Reghu Ram T ]

Cheers,<br />Reghu Ram T<br /> <br />SCJP 1.4 - 98 %, SCBCD 1.3 - 94 %, SCMAD 1.0 - 92 %
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

1. I believe you are correct. AMS can only look for calls for an application when it's not running. Paused would still be running, so.

2. If you're trying to lock it down to a single address, you can put that in the 'allowed sender' parameter. I do not believe it would function properly with a client connection.

3. User approval is required for these functions. Much as, when I was programming apps using JSR-82 (Bluetooth), it asked for permission to use those functions with my untrusted MIDLet.

4. I believe that it's probably from the implementation, reading it from the phone/device itself. (Which would make sense on a cellphone, since it would be provider-specific.) As for if it's included in the SMS, I'd probably guess not, but then again, I don't recall seeing anything about it when I was studying.

Hope this helps.


Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Reghu Ram Thanumalayan
Ranch Hand

Joined: Oct 21, 2003
Posts: 193
Thanks for the clarifications Theodore
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WMA related questions !