Example of Threading Policy

Consider an application with the following details:

  • Application name: weatherApp
  • Application has two Java components: weatherComponent1 and weatherComponent2
  • Component weatherComponent1 has exposed service with weatherService1 and reference with weatherReference1
  • Threading policies are applied both at component service and component reference

The following combination of properties is possible for this example:

  • weatherApp.invocationTimeoutInMilliseconds = 300: modifies timeout values for all references and services in application weatherApp
  • weatherApp.weatherComponent1.invocationTimeoutInMilliseconds = 300: modifies timeout values for all services and references in component weatherComponent1
  • weatherApp.weatherComponent1.reference.invocationTimeoutInMilliseconds = 300: modifies timeout values for all references in component weatherComponent1
  • weatherApp.weatherComponent1.service.invocationTimeoutInMilliseconds = 300: modifies timeout values for all services in component weatherComponent1
  • weatherApp.weatherComponent1.service.weatherService1.invocationTimeoutInMilliseconds = 300: modifies timeout value for service weatherService1 in component weatherComponent1
  • weatherApp.weatherComponent1.reference.weatherReference1.invocationTimeoutInMilliseconds = 300: modifies timeout values for reference weatherReference1 in component weatherComponent1