webMethods

webMethods

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.  Catching cursor handle

    Posted Thu December 18, 2003 07:29 PM

    This is my code:

    TStreamAccessor acceso;
    acceso=conexion.getConexion().newStreamAccessor(TAccessLocation.newInstance(coleccion));
    TResponse respuesta=null;
    //Invocamos la consulta
    try
    {
    TQuery tquery = new TQuery(XQuery);
    TInputStream is = acceso.openCursor(tquery,pos,cant);
    TResponseBuilderImpl aTRBI = new TResponseBuilderImpl(TDOMObjectModel.getInstance());
    respuesta = aTRBI.buildForXML(is);



    how could i catch the open cursor handle???

    Alfonso.


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


  • 2.  RE: Catching cursor handle

    Posted Tue December 30, 2003 04:01 PM

    Hello Alfonso,

    It seems here you are using classes from the TaminoAPI4J that are not documented which is not recommended. Anyway as far as I know there is no way to catch the cursor handle. You can use the fetchCursor() method of the TStreamAccessor interface. Is there a particular reason for wanting the cursor handle?

    Best regards,

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


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