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.  shorten connection-timeout

    Posted Thu May 15, 2003 04:47 PM

    If the Database I try to connect is down or doesn’t exist the TCommunicationException takes about 30 sek to appear.
    Can I shorten this timespan?

    -frankl


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs


  • 2.  RE: shorten connection-timeout

    Posted Fri May 16, 2003 12:19 AM

    Hello Frank,

    one possibility is to disable the usage of “retry handlers” in the API. Then the connection attempt will appear to fail faster, because there will not be multiple connection attempts.

    There is a class called TPreference:

       com.softwareag.tamino.db.api.common.TPreference</pre><BR>It can be used to disable retry handlers like this:<BR><pre class="ip-ubbcode-code-pre">   TPreference.getInstance().setUseRetryHandler(false);


    (Disable retry handlers before connecting, of course!)

    I hope that helps,
    Trevor.


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 3.  RE: shorten connection-timeout

    Posted Fri May 16, 2003 09:31 AM

    This has exactly the effect I expected.
    Now the exception appears immediately and the
    process doesn’l “lock”.

    Thank you,

    Frank


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management