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.  Queries shutdown Tamino??

    Posted Fri June 02, 2006 11:18 AM

    Hi,

    I am using Java API to access Tamino and make a query to insert a node then I close the connection. I put this in a loop and sometimes Tamino Server shutsdown itself. What am I doing wrong here? Also is there way to force Tamino Server to restart itself from Java?

    Here is the code I use which is taken from Tamino Api for Java document.

    public class TaminoCommon {

    public static String DATABASE_URI = “http://localhost/tamino/XXX4”;
    public TConnectionFactory connectionFactory = null;
    public boolean processed = false;
    public TConnection connection = null;
    public TLocalTransaction myTransaction = null;

    public void InsertNode(String xmlToBeInserted) throws TException
    {
    processed = false;
    try {

    TXMLObject xmlObject = TXMLObject.newInstance(   TDOMObjectModel.getInstance() );
    TXQuery insertNode = TXQuery.newInstance(xmlToBeInserted);
    String insertResult = connectToTamino().xquery(insertNode).getQueryContentAsString();
    processed = true;
    }
    
    catch (TException taminoException)  {
    processed = false;
    if (myTransaction != null) myTransaction.rollback();
    taminoException.printStackTrace();
    }
    

    }

    }

    Somewhere in the code I call this

    TaminoCommon test = new TaminoCommon();

    for(int t=0; t < x;t++)
    {

    test.InsertNode(inpatients.toString());

    test.connection.close();

    }

    Thanks.


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


  • 2.  RE: Queries shutdown Tamino??

    Posted Tue June 06, 2006 05:21 PM

    Hi,

    please consult the job log in Tamino manager (pending alerts)
    For each “shutdown” (=crash) you will find a job log. Could you please send the error and warning messages from this job log?

    Regards

    Harald


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