Professional Documents
Culture Documents
12
When you have a BPEL Process, and it needs to perform an operation on a
Database Table, for example, insert an employee, you have to use the Database
Adapter. The Database Adapter exposes to SOA, tables and SQL transparently and
non-intrusively.
In this post, I will create a BPEL Process to insert employees into Employees table
from HR Schema. Best practises, like the use of MDS and Mediator, are not the
purpose of this post. Download the sample application: SOADBAdapterApp.zip.
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 1/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
In Step 3, choose Empty Composite and click Finish to create the application.
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 2/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
<xsd:element name="createEmployeeRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="employee" type="employeeType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="createEmployeeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="status" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="employeeType">
<xsd:sequence>
<xsd:element name="firstName" type="xsd:string" minOccurs="0"/>
<xsd:element name="lastName" type="xsd:string"/>
<xsd:element name="email" type="xsd:string"/>
<xsd:element name="hireDate" type="xsd:date"/>
<xsd:element name="jobId" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 3/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
In Step 2, choose the Database Connection, set the JNDI Name and click Next.
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 5/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
In Step 4, click Import Tables button, choose EMPLOYEES table from HR Schema,
and click Next.
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 6/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 7/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 8/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
Double-click the rst Assign component, wire the parameters and click OK.
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 9/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
Click the Outbound Connection that you have created and set:
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 10/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
Click Save.
Go to Deployments and update the DbAdapter.
Go back to JDeveloper and deploy your SOA Project to Integrated WebLogic Server.
Go to Enterprise Manager (EM) and test the service.
12
No related posts.
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 11/12
12/28/2016 UsingDBAdapterinSOASuite12cWaslleySouzaBlog
Pingback: Using DB Adapter in SOA Suite 12c by Waslley Souza | SOA Community
Blog
The views expressed on this blog are my own and do not reect the views of the company I work (or
have worked for) neither Oracle Corporation. The opinions expressed by visitors on this blog are
theirs, not mine. The information in this blog is written based on personal experiences. You are free
to use the information on this blog but I am not responsible and will not compensate to you if you
ever happen to suer a loss/inconvenience/damage because of/while making use of this information.
http://waslleysouza.com.br/en/2014/09/usingdbadapterinsoasuite12c/ 12/12