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

Insert Datetime Type in to Stored Procedure Sql Server

  • 1.  Insert Datetime Type in to Stored Procedure Sql Server

    Posted Thu March 31, 2016 08:23 AM

    Hi All,

    I tried to insert data (datetime type) from esb to sql server.
    I’ve been created a java service and return java.sql.Timestamp.
    my java service return 3/30/2016 5:32:15 ICT.

    But when I call my adapter service to call Sql Server SP, data inserted in table but value is null.
    is there another way to insert datetime db type from ESB ?

    Here is my adapter service’s parameter

    thanks
    datetime issue.jpg


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: Insert Datetime Type in to Stored Procedure Sql Server

    Posted Thu March 31, 2016 11:44 AM

    Hi Junedi,

    you can use Build-In-Services from pub.date:* folder.

    Specify the timestamp field as java.lang.String in your Input-Signature of the adapter service.
    JDBC Adapter will convert this in the background.

    Which Version of JDBC Adapter with Fixes are using?

    Regards,
    Holger


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 3.  RE: Insert Datetime Type in to Stored Procedure Sql Server

    Posted Thu March 31, 2016 03:01 PM

    Try as Holger suggested,it should work.

    Thanks,


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 4.  RE: Insert Datetime Type in to Stored Procedure Sql Server

    Posted Fri April 01, 2016 12:13 AM

    hi guys,

    Thank you for your suggestion.
    My problem was solved.

    I use dd-MMM-yy hh.mm.ss.SSSSSS format in my java service
    then map it to my timestamp field in my jdbc adapter.
    And it’s work for me.
    Thanks.


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 5.  RE: Insert Datetime Type in to Stored Procedure Sql Server

    Posted Fri April 01, 2016 05:29 AM

    Glad to hear, thanks for the updates.

    Thanks,


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS