IBM webMethods Hybrid Integration

IBM webMethods Hybrid 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

Input for Custom SQL in JDBC Adapter

  • 1.  Input for Custom SQL in JDBC Adapter

    Posted Mon September 23, 2002 08:45 PM

    How do I specify the input fields in the Custom SQL for JDBC adapter? If my input field is “ServiceNo”, do I reference it as “${ServiceNo}” in my SQL? What about my output fields? If the output field is “Name”, how do I link it to my select column dept in my SQL?

    Thanks for any help!


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Input for Custom SQL in JDBC Adapter

    Posted Tue September 24, 2002 01:04 PM

    The JDBC adatper does not use the ${} notation that is typical of earlier adapters. You use the ‘?’ in your sql. For example

    SELECT FILE_ID, FILE_NAME FROM FILE_TABLE WHERE FILE_TYPE = ? AND FILE_SOURCE = ?

    Then create two input fields, the first one for FILE_TYPE, the second on is for FILE_SOURCE. The order of them in the SQL tab is important and must match the order with which they are in the where clause!

    Output fields are much the same, define them in the SQL tab in order that they are returned. For example, FILE_ID and then FILE_NAME. Thus I would recommend against an SQL statement that looked like this!!!

    SELECT * FROM FILE_TABLE WHERE FILE_TYPE = ? AND FILE_SOURCE = ?


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Input for Custom SQL in JDBC Adapter

    Posted Thu September 26, 2002 09:03 PM

    Hi. Thanks for the reply! Funny, I asked support and replied using ur reply! :slight_smile:


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards