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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  JDBC adapter Conundrum

    Posted 02/16/04 04:16 PM

    I need to write a JDBC adapter service for the which could cater to the following queries

    “select * from table_a where id in(a,b,c,d,e,f,g,h,i,j)”
    “select * from table_a where id in(a,b)”
    “select * from table_a where id in(a,b,c,d)”

    One way of doing it is to write a custom SQL which would look
    "select * from table_a where id in (?,?,?..).

    However the problem i have is that in some cases the above custom sql could have only 2 values or in some cases it could have 50.,Is there a way that i can write a generic jdbc adapter service to handle this ?


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: JDBC adapter Conundrum

    Posted 02/17/04 07:16 AM

    You could use dynamic SQL to do the substitution at runtime. Look at the section entitled ‘Configuring a Dynamic SQL Statement’ in the JDBC Adapter User Guide available on the webMethods Advantage website.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB