ServiceRuntimeException class

This class indicates a timeout condition during the invocation or execution of a service.

Purpose

If a component has invoked a service asynchronously, it can request a response when the component is ready to process the data. On that request, there is a wait period for the response. If response exceeds the wait period, a ServiceRuntimeException is thrown. The component can then determine the cause of the exception using the getCause() or getMessage() methods.

Examples

StockQuoteAsync sQ =  (StockQuoteAsync)ServiceManager.locateService(“stockQuote");
Ticket ticket = stockQuote.getQuoteRequest("IBM");
	// do something else

try {

	float quote = stockQuote.getQuoteResponse(ticket, Service.NO_WAIT);
		or
	float quote = stockQuote.getQuoteResponse(ticket, 10000);

} catch (ServiceTimeoutRuntimeException) {
	…
}
Related reference
ServiceBusinessException class
Related information
Class ServiceRuntimeException APIs

Last updated: Tue 10 Oct 2006 12:56:59

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)