1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: disp
- (C) Copyright IBM Corp. 2005 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!-- example service definition file using the async toolkit -->
- <service xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="./ ./services.xsd" name="asynctest" class="com.cognos.pogo.services.SoapActionHandlerService">
- <handlers>
- <!--
- define a handler that is an instance of AsyncHandler:
- threadBaseName - prefix used to name threads that run async requests
- expiryCheckIntervalms - how often thread that watches for abandoned requests
- wakes up. Each time it wakes it increments a count on each running async
- conversation. Each time we receive a request related to the conversation
- the count is reset to 0.
- abandonLimit - if the count reaches this value the conversation is considered to
- have been abandoned by the client. Dispatcher cancels the request by
- calling abandon() on teh async service.
- graceLimit - when the count reaches this value we delete the object that represents
- the conversation.
- wrappedHandler - name of the handler that implements Asyncable.
- onCompletionHandler - name of handler to be invoked when the async execution of
- the request completes. This is intended to be used to invoke a
- SimpleRequestReportingHandler (or similar), to integrate async services
- with dispatcher's mechanism for reporting runtime stats to ContentManager.
- -->
- <handler name="asyncTest" classname="com.cognos.pogo.async.impl.AsyncHandler" threadBaseName="asyncTestThread-" expiryCheckIntervalms="10000" abandonLimit="4" graceLimit="8" wrappedHandler="asynctest.testAsyncService" onCompletionHandler="asynctest.onCompletion"/>
- <!-- example handler that implements Asyncable.-->
- <handler name="testAsyncService" classname="com.cognos.pogo.async.debug.TestAsyncServiceHandler" requestDuration="40"/>
- <!-- example handler to be invoked when execution is complete. -->
- <handler name="onCompletion" classname="com.cognos.pogo.async.debug.OnCompletionExample"/>
- <handler name="async" classname="com.cognos.pogo.handlers.logic.ChainHandler">
- <chain>
- <handler_ref name="pogo.test_do_html_errors"/> <!-- test if need HTML error page -->
- <handler_ref name="asyncTest"/>
- <handler_ref name="pogo.respond"/>
- </chain>
- </handler>
- </handlers>
- <soapActions>
- <soapAction path="async" handler="asynctest.async"/>
- <soapAction path="async.absolute" handler="asynctest.async"/>
- <soapAction path="async.control" handler="asynctest.async"/>
- </soapActions>
- </service>
|