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.  Using Tamino API n threads

    Posted Wed July 31, 2002 11:39 AM

    Hi,

    Is the new Java API thread save? I’m looking for a problem accuring when I have one program running 10 threads. Each thread makes a connection to Tamino, executes a query and closes the connection. This three actions ara executed 100 times in the thread. After the third run the close of one of the threads hangs on a close connection and the other hangs on the retrieve of the XML accessor.

    PS : When I run 10 programs running each one thread, no problem at all. Only when I startone program with multiple threads the problems are occuring.


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


  • 2.  RE: Using Tamino API n threads

    Posted Wed July 31, 2002 12:04 PM

    What a good question! I have raised a request to get a definative answer.

    Kind regards,

    Simon


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


  • 3.  RE: Using Tamino API n threads

    Posted Wed July 31, 2002 02:26 PM

    Hi,

    The problem is caused by a error in the code. A close conenction was executed twice inside a thread. No Tamino exception was thrown on the second close, but it seems that this one corruopts the whole connection pool.

    But the following question is till open : Is the new Tamino java API thread safe.


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


  • 4.  RE: Using Tamino API n threads

    Posted Wed July 31, 2002 06:05 PM

    Hi there,

    Glad you have the problem sorted.

    Development have informed me that the Tamino API for Java IS THREAD SAFE.

    Kind regards,

    Simon


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


  • 5.  RE: Using Tamino API n threads

    Posted Thu August 01, 2002 10:02 AM