Managing failed SCA events
When problems processing a Service Component Architecture (SCA) request or response message create a failed SCA event in the Recovery subsystem, you must decide how to manage that event. Use the information in this topic to help you identify and fix the error and clear the event from the Recovery subsystem.
About this task
A Service Component Architecture (SCA) event is a request or response that is received by a service application. It might come from an external source, such as an inbound application adapter, or an external invocation to a web service. The event consists of a reference to the business logic that it wants to operate and its data, which is stored in a Service Data Object. When an event is received, it is processed by the appropriate application business logic.
- Event failures that occur during an asynchronous invocation of an SCA operation
- Event failures that are caused by a runtime exception, for example, any exception that is not declared in the methods used by the business logic
The Recovery service sends failed SCA asynchronous interactions to failed event destinations that have been created on the deployment environment bus. The data for failed events is stored in the failed event database (by default, WPCRSDB). You can find the data in the failed event manager.
- If the exception occurs during the initial request, Component A is the source and Component B is the destination for the failed event manager.
- If the exception occurs during the response, Component B is the source and Component A is the destination for the failed event manager.
Because runtime exceptions are not declared as part of the interface, component developers should attempt to resolve the exception and thus prevent a runtime exception from inadvertently being propagated to the client if the client is a user interface.
To manage a failed SCA event, perform the following steps.