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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Problems with non XML documents

    Posted 05/17/04 06:12 PM

    I need to insert a list of images into tamino. I’m using API for NET. I’ve found a problem: when two images are inserted,
    the next database access fails for timeout. The problem happens with remote database, and doesn’t happen if I run the aplication
    in a local database.
    I’ve done this test aplication as an example:


    TaminoDocument* inoDoc;
    TaminoCommand* inoCommand;
    TaminoResponse* inoResp;

    String* dbUri = new String (“http://vcr003:80/tamino/Test”);
    TaminoConnection* m_Tamino;
    m_Tamino = new TaminoConnection(dbUri);

    FileStream* fs;
    fs = new FileStream(S"c:\1.jpg", FileMode::Open);


    //insert image “1”
    m_Tamino->Open(TaminoConnectionMode::AutoCommit);
    inoDoc = new TaminoDocument(S"1", “Image”, fs, “image/jpeg”);
    inoCommand = m_Tamino->CreateCommand(S"MyCol");
    inoResp = inoCommand->Insert(inoDoc);
    m_Tamino->Close();
    fs->Close();

    //insert image “2”
    fs = new FileStream(S"c:\1.jpg", FileMode::Open);
    m_Tamino->Open(TaminoConnectionMode::AutoCommit);
    inoDoc = new TaminoDocument(S"2", “Image”, fs, “image/jpeg”);
    inoCommand = m_Tamino->CreateCommand(S"MyCol");
    inoResp = inoCommand->Insert(inoDoc);
    m_Tamino->Close();
    fs->Close();

    //insert image “3”
    fs = new FileStream(S"c:\1.jpg", FileMode::Open);
    m_Tamino->Open(TaminoConnectionMode::AutoCommit);
    inoDoc = new TaminoDocument(S"3", “Image”, fs, “image/jpeg”);
    inoCommand = m_Tamino->CreateCommand(S"MyCol");
    inoResp = inoCommand->Insert(inoDoc);
    m_Tamino->Close();
    fs->Close();


    Images “1” and “2” are correctly inserted into database but I recieve the operation timeout message when I try insert the “3”.
    Any kind of remote database access fails after I insert two nonXML documents
    Thanks


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


  • 2.  RE: Problems with non XML documents



  • 3.  RE: Problems with non XML documents

    Posted 05/18/04 10:07 AM

    I downloaded version 4.1.5 of API and it doesn’t work well too. Should it ?
    Now I try to contact
    with customer support
    thanks for all


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


  • 4.  RE: Problems with non XML documents

    Posted 06/25/04 01:08 PM

    hi.

    This sounds like a problem i have encountered too. The way i solved it was by raising the ServicePointManager.DefaultConnectionLimit and lowering the ServicePointManager.MaxServicePointIdleTime depending on how many accesses you want to be able to make.


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