soa - prior blogpost-2

Steps to use Oracle Adapter Services in Oracle Service Bus

- Adapter should be installed and deployed on the Weblogic Server.
- Oracle JDeveloper 11g should be installed on the local machine.
- Exercise is explained using Database Adapter.

This exercise involves there major steps:

1) Creating the SOA Composite with Database Adapter.

- This step will create a Binding (*.jca) and WSDL (*.wsdl) file in the project which would required for generating the Data Service. An example binding file is displayed below:

*********************************************************************************

<adapter-config name="QueryDatabaseByPersonID" adapter="Database Adapter" wsdlLocation="QueryDatabaseByPersonID.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">

  <connection-factory location="eis/DB/Development" UIConnectionName="Development" adapterRef=""/>
  <endpoint-interaction portType="QueryDatabaseByPersonID_ptt" operation="QueryDatabaseByPersonID">
    <interaction-spec className="oracle.tip.adapter.db.DBPureSQLInteractionSpec">
      <property name="SqlString" value="select person_name from development.person where id =#personID"/>
      <property name="GetActiveUnitOfWork" value="false"/>
    </interaction-spec>
    <input/>
    <output/>
  </endpoint-interaction>

</adapter-config>

*********************************************************************************


2) Generate Data Service from binding (JCA File) and WSDL file.

- Import the generated JCA file and WSDL file in the above step into an OSB project. Also import any dependent files (eg: schema files) associated with the generated files.

- You will notice an icon (Generate WSDL and service from this JCA binding resource) in the Actions tab. Clicking on this icon will generate the WSDL file for the Database Adapter Data Service.

3) Configure the Database Adapter Connection Factory in weblogic which will leverage the target database Connection Factory.

- "eis/DB/Development" connection factory is created while creating the Database Adapter.
- Go to Weblogic Console and click on Deployments.
- Click on DbAdapter Jar file.
- Click on Configuration and then "Outbound Connection Pools".
- Create a new Connection Pool by the name "eis/DB/Development".  In the configuration properties, specify the JNDI for the DataSource in the "dataSourceName" property if it is regular DataSourceName and xADataSourceName if it is a Transaction DataSource.
- Re-Deploy the Database Adapter Jar File.

Comments

Popular posts from this blog

http vs https - prior blog

soa - prior blogpost-1

service bus - prior blog