OSB 12c - Database Polling using DB adapter - Oracle Fusion Middleware Blog

3
12/11/2015 OSB 12c Database Polling using DB adapter Oracle Fusion Middleware Blog http://www.soawork.com/2015/10/osb12cdatabasepollingusingdbadapter.html 1/3 ORACLE FUSION MIDDLEWARE BLOG 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 OSB 12c - Database Polling using DB adapter 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. ABOUT ME DISCLAIMER BLOG ARCHIVE TOTAL PAGEVIEWS 1 3 2 3 4 8 4 To search type and hit enter... Home About Me Contact Me Labels 08 Oct 2015

Transcript of OSB 12c - Database Polling using DB adapter - Oracle Fusion Middleware Blog

Page 1: OSB 12c - Database Polling using DB adapter - Oracle Fusion Middleware Blog

12/11/2015 OSB 12c Database Polling using DB adapter Oracle Fusion Middleware Blog

http://www.soawork.com/2015/10/osb12cdatabasepollingusingdbadapter.html 1/3

ORACLE FUSION MIDDLEWARE BLOGSOA, 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 notrepresent any company or customer work. Thisblog is result of the POC's which I keep ondoing during my spare time. Please feel free toreach out to me in case you have any concernregarding material in this blog.

2015 ( 9 )

October ( 1 )

OSB 12c Database Polling using DBadapter

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

OSB 12c - Database Polling using DB adapter

Oracle introduced couple of new features in 12c version which is recently launched. For OSB, the major shiftthat we saw in 12c is that now we can use Jdeveloper to do the development which we use to do throughOEPE (Eclipse). With that change, we can leverage the existing technology adapter in OSB as well which weuse to have in SOA. In OSB 11g version, in case of Database interaction, we use to create DB adapter inJdeveloper and later import all required files to OEPE and generate required services from that, but in thisnew version12c as we development in Jdeveloper itself so we need not to follow same steps again, we canadd 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 indatabase, 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 aswe read the data from local table) and click on browse button to select the outbound connection poolcreated earlier for DB adapter. This search feature is a new feature that is introduced in 12c, with this featurewe can go to server and select the outbound connection pool; we can even create new connection pool withthis option.

In next window, choose “Poll for new or changed records in table” operation type as we need to poll the newor updated records then select the table from where we need to poll the record and also select primary keycolumn. Also choose the column based upon that we need to read the record and select read & unreadcolumn values.

ABOUT ME

DISCLAIMER

BLOG ARCHIVE

TOTAL PAGEVIEWS

1323484

To search type and hit enter...Home About Me Contact Me Labels

08Oct2015

Page 2: OSB 12c - Database Polling using DB adapter - Oracle Fusion Middleware Blog

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 14Compose new Tweet…

14

There was an error in this gadget

Join this sitewith 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 oneissue in that adapter as we haven’t added the pipeline yet. To add pipeline, right click on middle panechoose Insert Pipeline.

Provide pipeline name and in service type choose “Any SOAP” as we will get the data in soap format fromDB adapter. Ensure that “Expose as a proxy service” checkbox is unchecked as we already have proxyservice created using DB adapter, if you keep that checked then you will notice that it will add one moreproxy in the same composite.

FOLLOW BY EMAIL

Email address... Submit

FOLLOWERS

Page 3: OSB 12c - Database Polling using DB adapter - Oracle Fusion Middleware Blog

12/11/2015 OSB 12c Database Polling using DB adapter Oracle Fusion Middleware Blog

http://www.soawork.com/2015/10/osb12cdatabasepollingusingdbadapter.html 3/3

NextThis is the most recent post.

OSB 12c Pipeline TemplateAs we know Oracle SOA 12c comes with lot ofnew features, one of that is service bus ismerged w...Read more

RELATED POSTS

1 COMMENTS :

Notify me

Sign out

Enter your comment...

Comment as: TUSHAR VARSHNEY (Google)

Publish Preview

Links to this post

Create a Link

Copyright © 2015 All Right ReservedBlogger Designed by IVYthemes | MKR Site

Posts RSS • Comments RSS

Now you can add wire DB adapter with pipeline. Then add file adapter to write the file and wire it to pipeline.Now go inside the pipeline and add route node after the start node in message flow. Add routing actioninside route node, in routing select the write file adapter business service .

Add new record to source table and you notice that data successfully picked from that table and writtento target file.

Tweet 0LikeShare 26

PreviousOSB 11g - JMS Message Selector

Unknown October 30, 2015 at 9:21 AM

Very good explanation..

Reply

Diese Website verwendet Cookies von Google, um ihre Dienstebereitzustellen, Anzeigen zu personalisieren und Zugriffe zuanalysieren. Informationen darüber, wie du die Websiteverwendest, werden an Google weitergegeben. Durch die Nutzungdieser Website erklärst du dich damit einverstanden, dass sieCookies verwendet.

WEITERE INFORMATIONEN OK