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.


#TechXchangePresenter
 View Only
  • 1.  Timestamp type

    Posted Wed June 16, 2010 05:11 PM

    When i make this SQL query: SELECT * FROM table_name

    Adapter returns null in the TIMESTAMP columns.

    but if i make this one: SELECT UPDATED_AT FROM table_name

    and specify the type of the column he returns the value with the correct type

    The main problem is that i realy need to make a “*” SELECT query because i’m not always know the number of columns in the table (when the table changes)


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


  • 2.  RE: Timestamp type

    Posted Wed June 16, 2010 06:30 PM

    You don’t need to know the number of columns nor even all the columns in the table but you do need to know which columns are needed for your integration and you need to be explicit about them.


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


  • 3.  RE: Timestamp type

    Posted Wed June 16, 2010 11:05 PM

    I don’t know if i realy get it.
    So, i know that i’m always will have GUID, LOCALE , DISABLED, CREATED_AT, UPDATED_AT, UPDATED_BY.
    plus
    sometimes i will have VALUE, and others VALUE, VALUE2, and others VALUE, VALUE2, VALUE3 that depends on the Table.


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


  • 4.  RE: Timestamp type

    Posted Thu June 17, 2010 01:17 AM

    Options:

    • Create an adapter service for each table, defining the columns for each table.
    • Use a dynamic SQL adapter service to be used for multiple tables, each table name and the “extra” columns determined at runtime and passed to the dynamic service.

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


  • 5.  RE: Timestamp type

    Posted Thu June 17, 2010 12:20 PM

    *The first i can’t use, i don’t have a fix number of tables in database.

    • Second, I understand, but i don’t know how to do it.

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


  • 6.  RE: Timestamp type

    Posted Thu June 17, 2010 03:21 PM

    The JDBC Developer’s guide provides information about using the dynamic service. Give it a try and post any questions/issues that arise.


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