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?
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
posted 8 years ago
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.