Oracle 11G Database Adapter as Poller with BPEL process _ My Tech Blog
1. 12/14/2015 Oracle 11G Database Adapter as Poller with BPEL process | My Tech Blog
https://rathinasaba.wordpress.com/2012/12/16/oracle11gdatabaseadapteraspollerwithbpelprocess/ 1/23
My Tech Blog
Java Web Service SOA
Home
My Learnings
Java
XStream
ESB
BPEL
Webservices
Hibernate
SQL
J2EE
Type text to search here...
Home > Adapter > Oracle 11G Database Adapter as Poller with BPEL process
Oracle 11G Database Adapter as Poller with BPEL
process
December 16, 2012 sabapathy Leave a comment Go to comments
Oracle Database Adapter works with Oracle BPEL Process and Oracle Mediator.
This Database adapter enable the BPEL and mediator to communicate with Oracle
Database or other third party databases with JDBC.
In this post will see how to use the database adapter as a poller with BPEL process.
In this example one external service inserts records into database table. This Database
adapter polls the records from the table and push it to BPEL process.
There is a column “Status” in the table. Initially it will be inserted with status “Ready”.
Once it is picked it will be updated to status “Processing”.
It will be updated to status “Completed” once the record has been successfully processed.
table structure and sample values
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CREATE TABLE
CREATE TABLE SUB_CONNECT(
IDENTIFIER VARCHAR2(50) PRIMARY
REQUEST_XML CLOB NOT NULL,
CREATED_AT TIMESTAMP NOT NULL,
UPDATED_AT TIMESTAMP NOT NULL,
STATUS VARCHAR2(20) NOT NULL
);
CREATE SEQUENCE TO CREATE UNIQUE IDENTIFIER COLUMN
CREATE SEQUENCE SB_CONN_SEQ START WITH 1 INCREMENT BY 1 NOCACHE NOC
INSERT SAMPLE VALUES
INSERT INTO SUB_CONNECT VALUES('IDENTIFIER'||SB_CONN_SEQ.NEXTVAL,
INSERT INTO SUB_CONNECT VALUES('IDENTIFIER'||SB_CONN_SEQ.NEXTVAL,