camasyncservice.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!--
  2. Licensed Materials - Property of IBM
  3. IBM Cognos Products: CAMAAA
  4. (C) Copyright IBM Corp. 2010, 2012
  5. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
  6. IBM Corp.
  7. -->
  8. <!-- example service definition file using the async toolkit -->
  9. <service xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="./ ./services.xsd" name="camAsyncAA" class="com.cognos.pogo.services.SoapActionHandlerService">
  10. <handlers>
  11. <!--
  12. define a handler that is an instance of AsyncHandler: threadBaseName
  13. - prefix used to name threads that run async requests
  14. expiryCheckIntervalms - how often thread that watches for abandoned
  15. requests wakes up. Each time it wakes it increments a count on each
  16. running async conversation. Each time we receive a request related to
  17. the conversation the count is reset to 0. abandonLimit - if the count
  18. reaches this value the conversation is considered to have been
  19. abandoned by the client. Dispatcher cancels the request by calling
  20. abandon() on teh async service. graceLimit - when the count reaches
  21. this value we delete the object that represents the conversation.
  22. wrappedHandler - name of the handler that implements Asyncable.
  23. onCompletionHandler - name of handler to be invoked when the async
  24. execution of the request completes. This is intended to be used to
  25. invoke a SimpleRequestReportingHandler (or similar), to integrate
  26. async services with dispatcher's mechanism for reporting runtime
  27. stats to ContentManager.
  28. -->
  29. <handler name="camAsyncAAReporter" classname="com.cognos.pogo.monitoring.SimpleRequestReportingHandler" publisherName="NoPublisher" reporterName="camAsyncAA" serviceType="camAsyncAA" skip_on_fault="false"/>
  30. <handler name="serviceStatus" classname="com.cognos.pogo.handlers.engine.ActiveServiceStatusHandler" dispatcherStateHandler="dispatcher.dispatcherStatusHandler" serviceName="camAsyncAA" errorCode="SERVER_BUSY" skip_on_fault="false"/>
  31. <handler name="camAsyncHandler" classname="com.cognos.pogo.async.impl.AsyncHandler" threadBaseName="camAsyncHandler-" expiryCheckIntervalms="10000" abandonLimit="4" graceLimit="8" wrappedHandler="camAsyncAA.camAsyncService"/>
  32. <!-- example handler that implements Asyncable.-->
  33. <handler name="camAsyncService" classname="com.ibm.cognos.camaaa.internal.common.service.CAMAsyncServiceHandler" requestDuration="40"/>
  34. <!--
  35. example handler to be invoked when execution is complete. <handler
  36. name="onCompletion"
  37. classname="com.cognos.pogo.async.debug.OnCompletionExample"/>
  38. -->
  39. <handler name="async" classname="com.cognos.pogo.handlers.logic.ChainHandler">
  40. <chain>
  41. <handler_ref name="camAsyncAAReporter"/>
  42. <handler_ref name="serviceStatus"/>
  43. <!-- <handler_ref name="pogo.auth_check"/> -->
  44. <handler_ref name="camAsyncHandler"/>
  45. <handler_ref name="pogo.respond"/>
  46. </chain>
  47. </handler>
  48. <!-- =============================
  49. camaysnc service remote load balancing handler
  50. ============================================-->
  51. <handler name="RemoteBalanceHandler" classname="com.cognos.p2plb.clerver.actions.RemoteBalanceHandler">
  52. <service name="camAsyncAA">
  53. <forwarding delayBetweenAttempts="0" maxAttempts="1"/>
  54. <soapAction>CAM.auth</soapAction>
  55. <soapAction>http://developer.cognos.com/schemas/bibus/3#CAM.auth</soapAction>
  56. </service>
  57. </handler>
  58. </handlers>
  59. <soapActions>
  60. <soapAction path="CAM.auth" handler="camAsyncAA.async"/>
  61. <soapAction path="CAM.admin" handler="camAsyncAA.async"/>
  62. <soapAction path="CAM.legacy" handler="camAsyncAA.async"/>
  63. <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.auth" handler="camAsyncAA.async"/>
  64. <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.admin" handler="camAsyncAA.async"/>
  65. <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.legacy" handler="camAsyncAA.async"/>
  66. <soapAction path="http://developer.cognos.com/schemas/bibus/3#CAM.test" handler="camAsyncAA.async"/>
  67. </soapActions>
  68. <attributes>
  69. <!-- needed for ReportServerHandler class -->
  70. </attributes>
  71. </service>