The use of the Spring Component of the Oracle SOA Suite are numerous.
This article shows how to use a Spring Component to create a webservice "on top of" the Oracle SOA WorkflowServiceAPI.
Creating a Spring Component is straight forward:
1. Drag'n'drop a Spring Component into a SOA Composite
2. Create a Java Interface (with a set of methods)
3. Create an implementation of the interface (i.e. a Java Class)
4. Configure a Spring Bean
5. Expose the Spring Bean as a composite service
In our "case" we want to expose the "interface" of the Oracle SOA WorkflowServiceAPI.
We're using a bottom-up (instead of top-down) approach (i.e. starting with the Java-implementation), e.g.
The rest of the implementation is straight forward, and follows the same "pattern" as other WorkflowServiceClient-samples.
However, it is important to get the configuration correct (with regards to a given Oracle SOA run-time environment), ref.
The complete source can be downloaded from this location: WorkflowServiceWS.
1) The source is implemented using Oracle SOA Suite 11g PS2
2) The following libraries are required:
However, it is not required to deploy these to the SOA-server.
More information about the Spring Component:
* Documentation (Oracle): http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/sca_spring.htm
* Tutorial: http://redstack.wordpress.com/2011/04/05/using-javaspring-components-in-soabpm-11g/
* Samples (Oracle SOA): http://java.net/projects/oraclesoasuite11g/pages/Spring