123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: CAMAAA
- (C) Copyright IBM Corp. 2010, 2012
- 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="camAsyncAA" 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="camAsyncAAReporter" classname="com.cognos.pogo.monitoring.SimpleRequestReportingHandler" publisherName="NoPublisher" reporterName="camAsyncAA" serviceType="camAsyncAA" skip_on_fault="false"/>
- <handler name="serviceStatus" classname="com.cognos.pogo.handlers.engine.ActiveServiceStatusHandler" dispatcherStateHandler="dispatcher.dispatcherStatusHandler" serviceName="camAsyncAA" errorCode="SERVER_BUSY" skip_on_fault="false"/>
- <handler name="camAsyncHandler" classname="com.cognos.pogo.async.impl.AsyncHandler" threadBaseName="camAsyncHandler-" expiryCheckIntervalms="10000" abandonLimit="4" graceLimit="8" wrappedHandler="camAsyncAA.camAsyncService"/>
- <!-- example handler that implements Asyncable.-->
- <handler name="camAsyncService" classname="com.ibm.cognos.camaaa.internal.common.service.CAMAsyncServiceHandler" 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="camAsyncAAReporter"/>
- <handler_ref name="serviceStatus"/>
- <!-- <handler_ref name="pogo.auth_check"/> -->
- <handler_ref name="camAsyncHandler"/>
- <handler_ref name="pogo.respond"/>
- </chain>
- </handler>
- <!-- =============================
- camaysnc service remote load balancing handler
- ============================================-->
- <handler name="RemoteBalanceHandler" classname="com.cognos.p2plb.clerver.actions.RemoteBalanceHandler">
- <service name="camAsyncAA">
- <forwarding delayBetweenAttempts="0" maxAttempts="1"/>
- <soapAction>CAM.auth</soapAction>
- <soapAction>http://developer.cognos.com/schemas/bibus/3#CAM.auth</soapAction>
- </service>
- </handler>
- </handlers>
- <soapActions>
- <soapAction path="CAM.auth" handler="camAsyncAA.async"/>
- <soapAction path="CAM.admin" handler="camAsyncAA.async"/>
- <soapAction path="CAM.legacy" handler="camAsyncAA.async"/>
- <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.auth" handler="camAsyncAA.async"/>
- <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.admin" handler="camAsyncAA.async"/>
- <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.legacy" handler="camAsyncAA.async"/>
- <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.test" handler="camAsyncAA.async"/>
- </soapActions>
- <attributes>
- <!-- needed for ReportServerHandler class -->
- </attributes>
- </service>
|