Using the Predefined Spring Beans

Oracle SOA Suite provides the following predefined spring beans:

  • headerHelperBean: For getting and setting header properties.

  • instanceHelperBean: For getting the following information:

    • The instance ID of the flow instance currently running.

    • The instance ID of the component instance currently running.

    • The composite distinguished name (DN) containing the component.

    • The name of the spring service component.

  • loggerBean: For providing context-aware logging messages.

The predefined spring beans are automatically injected into the spring service component. However, you must explicitly integrate the predefined spring beans into a SOA composite application by providing a reference to the bean in the spring context file.

For an example of how to reference loggerBean and headerHelperBean in a spring context file, see How to Reference Predefined Spring Beans in the Spring Context File.