Configuring a JDBC Providers policy for the scenario to enrich a message with data from a database
Configure a JDBC Providers policy and deploy the default policy project.
Before you begin
The integration server named Server1 is created and started.
About this task
The IBM® App Connect Enterprise Toolkit connects to the database CLIENTS and runs discovery so that the graphical data mapping editor can use the database definition to visualize the database tables PERSON, ADDRESS, and PHONE.
At run time, the Mapping node uses a JDBC Providers policy to obtain the configuration parameters that will enable it to make the connection to the runtime database PCLIENTS that the message map will execute against.
- databaseName property: You must set its value to be the runtime database name PCLIENTS.
- databaseSchemaNames property: You must set its value to use at run time the database schema PADDRESSBOOK.
The following table lists the database resource names in the development environment, and in the runtime environment:
Development database resource names | Runtime database resource names | |
---|---|---|
Database name | CLIENTS | PCLIENTS |
Schema name | ADDRESSBOOK | PADDRESSBOOK |
Tables names | PERSON, ADDRESS, PHONE | PERSON, ADDRESS, PHONE |
Procedure
To configure the JDBC Providers policy, complete the following steps:
Results
A JDBC provider configurable service is available at run time.
What to do next
Secure the JDBC connection. For more information, see Securing the JDBC Providers policy for the scenario to enrich a message with data from a database.