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
  • 1.  JDBC Adapter - error passing variables

    Posted Wed April 08, 2009 10:44 AM

    Hi,

    i am making an UPDATESQL in webMethods 6.5.

    IF i hardcode the value in the UpdateSQL, it works fine.

    when i try to pass 2 variables in the UpdateSQL, nothing happens in the database, no update.

    My SQL : UPDATE xtable SET environment = ‘variable1’ WHERE branchplant = ‘variable2’

    My steps:

    made an adapter with the above mentioned SQL,

    created a flow service, with 2 inputs as environment and branchplant.

    Can anyone help me please?


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


  • 2.  RE: JDBC Adapter - error passing variables

    Posted Wed April 08, 2009 11:29 AM

    Just a hint: If the output datatype for the two vairiables is other than ‘String’, then your input should be first converted to that type and then mapped.


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


  • 3.  RE: JDBC Adapter - error passing variables

    Posted Thu April 09, 2009 09:22 AM

    Thank you tgunasekhar. I thought the problem was with the inputs, but in fact it was with the databasse values, they had lots of spaces. then i changed the sql to LIKE. it works.


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