This document discusses using a database adapter in Oracle Service Bus (OSB) 12c to poll data from a database table. It describes how to create an OSB project, add a database adapter, configure it to poll for new or changed records from a table, add a pipeline, and write the retrieved data to a file using a file adapter. By wiring the database and file adapters to the pipeline with a routing node, the example polls a source database table and writes the data to a target file.
OSB 12c - Database Polling using DB adapter - Oracle Fusion Middleware Blog
1. 12/11/2015 OSB 12c Database Polling using DB adapter Oracle Fusion Middleware Blog
http://www.soawork.com/2015/10/osb12cdatabasepollingusingdbadapter.html 1/3
ORACLEFUSIONMIDDLEWAREBLOG
SOA, OSB, BAM, B2B, SOA Suite 12c Blog
Home » OSB 12c » OSB 12c Database Polling using DB adapter
VIVEK GARG
Follow 408
VIEW MY COMPLETE PROFILE
This blog is solely owned by me and it does not
represent any company or customer work. This
blog is result of the POC's which I keep on
doing during my spare time. Please feel free to
reach out to me in case you have any concern
regarding material in this blog.
▼ 2015 ( 9 )
▼ October ( 1 )
OSB 12c Database Polling using DB
adapter
► September ( 1 )
► July ( 2 )
► June ( 1 )
► May ( 2 )
► April ( 1 )
► January ( 1 )
► 2014 ( 101 )
► 2013 ( 32 )
► 2012 ( 26 )
Powered by Blogger.
DB adapter in OSB 12c #soacommunity
@soaworkblog @soacum
soawork.com/2015/10/osb‐12…
Vivek Garg
@soaworkblog
Expand
Usage of XSLT file in OSB 11g
soawork.com/2015/04/use‐xs…
Vivek Garg
@soaworkblog
Pipeline Templates in #OSB12c #SOA12c
#soaworkblog @soaworkblog
Vivek Garg
@soaworkblog
8 Oct
6 Apr
2 Jan
Tweets
OSB12c-DatabasePollingusingDBadapter
Oracle introduced couple of new features in 12c version which is recently launched. For OSB, the major shift
that we saw in 12c is that now we can use Jdeveloper to do the development which we use to do through
OEPE (Eclipse). With that change, we can leverage the existing technology adapter in OSB as well which we
use to have in SOA. In OSB 11g version, in case of Database interaction, we use to create DB adapter in
Jdeveloper and later import all required files to OEPE and generate required services from that, but in this
new version12c as we development in Jdeveloper itself so we need not to follow same steps again, we can
add the DB adapter directly in OSB project and do required operations.
In this post, we show you how to use DB adapter in OSB project. For that we have created a table in
database, we poll the data from that table and write that information to one file.
First of all we need to create a new OSB project, so first create a new project and then in composite.xml file,
right click on proxy service lane, choose “Insert Adapters” and select Database to add DB adapter.
Provide name to adapter and click on next. In next window, choose DB connection (In our case it is local as
we read the data from local table) and click on browse button to select the outbound connection pool
created earlier for DB adapter. This search feature is a new feature that is introduced in 12c, with this feature
we can go to server and select the outbound connection pool; we can even create new connection pool with
this option.
In next window, choose “Poll for new or changed records in table” operation type as we need to poll the new
or updated records then select the table from where we need to poll the record and also select primary key
column. Also choose the column based upon that we need to read the record and select read & unread
column values.
ABOUTME
DISCLAIMER
BLOGARCHIVE
TOTALPAGEVIEWS
1 3 2 3 4 8 4
To search type and hit enter...Home About Me Contact Me Labels
08
Oct
2015
2. 12/11/2015 OSB 12c Database Polling using DB adapter Oracle Fusion Middleware Blog
http://www.soawork.com/2015/10/osb12cdatabasepollingusingdbadapter.html 2/3
#soaworkblog @soaworkblog
@soacommunity
soawork.com/2015/01/osb‐12…
Expand
#SOA 12c ‐ Encryption and Decryption of
Sensitive Data ‐ See more at:
soawork.com/2014/10/soa‐12… #Oracle
Expertezed
@Expertezed
Expand
OPITZ CONSULTING
7 Dec 14
1 Dec 14
Compose new Tweet…
14
There was an error in this gadget
Join this site
with Google Friend Connect
Members (38) More »
Already a member? Sign in
Once you complete all above steps, then you see DB adapter gets added to the composite but you see one
issue in that adapter as we haven’t added the pipeline yet. To add pipeline, right click on middle pane
choose Insert Pipeline.
Provide pipeline name and in service type choose “Any SOAP” as we will get the data in soap format from
DB adapter. Ensure that “Expose as a proxy service” checkbox is unchecked as we already have proxy
service created using DB adapter, if you keep that checked then you will notice that it will add one more
proxy in the same composite.
FOLLOWBYEMAIL
Email address... Submit
FOLLOWERS