This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes PushRegistry Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "PushRegistry Question" Watch "PushRegistry Question" New topic
Author

PushRegistry Question

Girish Nagaraj
Ranch Hand

Joined: Apr 19, 2006
Posts: 153
Q)What will happen when a stream connection received by the AMS via Push Registry mechanism times out for an application that is not currently running?

Choices:

a) An InterruptedIOException will be thrown to the application upon connection transfer from the AMS to the application.

b) The behaviour is not defined by the specification.

Which is correct choice?
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
It is actually an optional implementation that the implementers need to thrown InterruptedIOException when a time out occurs.

Since it is defined in the Spec, the choice a would be the most suitable one to select. But we can't be sure that "an InterruptedIOException will be thrown to the application upon connection transfer from the AMS to the application.". It depends on the implementer's choice.



Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PushRegistry Question
 
Similar Threads
MIDlet.destroyApp() vs MIDlet.notifyDestroyed()
J2ME question: Can I do this with the Push Registry
Writing MODEM or how to get round AMS
install WMA RI into Sun one Studio
Bug using AMS to update j2me applications