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

jdbc service returns gmt instead of time in db table

  • 1.  jdbc service returns gmt instead of time in db table

    Posted Wed April 28, 2010 08:22 PM

    I have a jdbc adapter service which calls a stored procedure, which returns a timestamp. The problem is the adapter service automatically converts the timestamp to gmt. anyway I can stop it from doing the conversion? I just want the timestamp as is in db. BTW, I am using 7.1.2
    Many thanks


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


  • 2.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 04:14 PM

    saving time in DB with GMT is good practice. The client should do the conversion base on the user/client locale. Do the conversion yourself after retrieve it.


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


  • 3.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 04:56 PM

    Thanks, and whether it is a good practice or not, in my view, depends on the application. But that is not the issue here, the problem is the adapter automatically convert date to GMT. Should have an option to have the conversion or not.


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


  • 4.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 05:44 PM

    It’s not the adapter doing it. It’s the driver.


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


  • 5.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 05:52 PM

    The jdbc driver? I am a bit confused here, care to elaborate? Thanks


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


  • 6.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 06:07 PM

    The driver, not the adapter, applies the client locale. To control the driver you can either change the appropriate client config files or I think you can set additional parameters in the adapter connection config (which are passed through to the driver).


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


  • 7.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 06:43 PM

    but isn’t locale more of a language issue than timezone issue?


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


  • 8.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 07:04 PM

    Strictly speaking, that’s true. Locale deals with language and formats. Sorry for the misdirection.

    I guess my main point is to focus on how to configure/control how the driver behaves rather than the adapter.

    ORA_SDTZ is an environment variable that can control the default session time zone.

    I’m just speculating on what may be happening but I’m fairly confident that it is not the adapter. Instead, it is likely to be the configuration of the DB itself and the driver (and any other tools you’re using to view/test the stored proc results).


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


  • 9.  RE: jdbc service returns gmt instead of time in db table

    Posted Thu April 29, 2010 07:07 PM