Cloud Pak for Integration

Cloud Pak for Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Oracle Database connection from App connect flow in CP4I.

  • 1.  Oracle Database connection from App connect flow in CP4I.

    Posted Sun February 13, 2022 01:07 PM
    Hi Team,

    Created a flow in which Oracle Database insertion is required. In App connect Enterprise Toolkit, created a policy for JDBC Providers and called that policy file in Java Compute node in creating DB connection command.
    * Connection conn = getJDBCType4Connection("{policy}:db", JDBC_TransactionType.MB_TRANSACTION_AUTO);

    Trying to do the same in CP4I, what is the way of connecting Oracle DB with app connect flow.
    Found a way of creating of ODBC.ini file in Configuration Type, is that only way to connect DB.

    If so, Please share some reference for creating ODBC.ini file and how to call/refer this configuration file in my App connect Message flow to create connection for Inserting values.

    ------------------------------
    Preethi B V
    ------------------------------


  • 2.  RE: Oracle Database connection from App connect flow in CP4I.

    Posted Tue April 12, 2022 02:36 PM
    Hi Preethi,
    The same approach will work just fine in CP4I.  You can use your current JDBC approach or switch to ODBC, whichever you fancy.  To get JDBC to work, you need to include the JDBC provider JARs into the BAR, or otherwise make them available to the container.  You will also need to include the policy project in the BAR.  This way all the resources for JDBC are available in the runtime.

    ------------------------------
    MATTHEW SEGALL
    ------------------------------