File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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