Part 1 – Oracle BPM 12c Process Invoke Database by Dan Atwood


Part 1 – Create a WebLogic JNDI Database Connection

This explains how the WebLogic JNDI connection to a database schema is created.  In the next two posts, you will see how the Database Adapter can use this connection once it has been created.  This simply describes the steps that are necessary to configure the JNDI connection initially. 

Components exposed in a SOA application can be exposed as a service, and a call to the database is no exception.  In order to invoke the database from a BPM process, it first has to be exposed as a service.

First, a datasource needs to be created.  You need the database schema’s datasource configured to create the JNDI connection information needed to access it. If all you want to do is to access the data from ADF, this is all you would need. 

Where the database adapter comes into play, however, is when your project’s composite needs to access it as a service (e.g., when a composite’s Mediator needs to connect to the database adapter). In the fourth part of this series, the Database Adapter SOA component will be dragged into the External References column of your composite diagram. For this to succeed at runtime, the datasource’s JNDI connection to the datasource has to first be added to the database adapter’s DBAdapter deployment.  This will be done in part 3 of this series.

This example uses the HR schema that comes that is preinstalled with the Oracle XE 11g or 12c SE database, but these same steps could be used to expose other database schemas. 

1. Open the WebLogic Console (e.g., http://localhost:7001/console), and log in.

2. In this step, the source of the data is configured as a datasource to the SOA infrastructure.  This datasource provides the connection to the actual underlying data provider.  Configure the JDBC Datasource in the WebLogic by selecting Services -> Data Sources. Read the complete article here.

About Jürgen Kress
As a middleware expert Jürgen works at Oracle EMEA Alliances and Channels, responsible for Oracle’s EMEA Fusion Middleware partner business. He is the founder of the Oracle SOA & BPM and the WebLogic Partner Communities and the global Oracle Partner Advisory Councils. With more than 5000 members from all over the world the Middleware Partner Community is the most successful and active community at Oracle. Jürgen manages the community with monthly newsletters, webcasts and conferences. He hosts his annual Fusion Middleware Partner Community Forums and the Fusion Middleware Summer Camps, where more than 200 partners get product updates, roadmap insights and hands-on trainings. Supplemented by many web 2.0 tools like twitter, discussion forums, online communities, blogs and wikis. For the SOA & Cloud Symposium by Thomas Erl, Jürgen is a member of the steering board. He is also a frequent speaker at conferences like the SOA & BPM Integration Days, JAX, UKOUG, OUGN, or OOP.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: