Skip to Content

How to close WebI Processor Server Connections using REstful SDK?

Hi,

We face an annoying issue related with the management of connections defined on the WebIIntelligence Processing server . We are doing several developments (all of them using WebI REstful SDK) that executes Webi reports on background programatically. We have noticed (checking BI Monitoring Server Metrics) that each execution generates a connection on the WebI processing server. This does take sense but question is that we don't know how to close the connection. This is causing us a lot of headached as the opened connections remains there and sometimes might exceed the maximum number of connections defined on the WebI processing server.

Question is: does exist a best practice to avoid this situation? How can we force the generated connections on webi processor to be closed aurtomatically when report execution is completed by using SDK (Restful one if possible) ?

Thanks,

Alfons

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 06, 2017 at 04:43 PM

    Hi Alfons,

    You can manage the lifecycle of the document (save, and/or unload) with the following:

    PUT /biprws/raylight/v1/documents/<docId>

    body:

    <document>
    <state>Unused</state>
    </document>

    Make sure you understand the current state of the document (Original, Modified, Unused) so that you understand whether or not you want to save the changes to a document when closing or simply close the document without changes.

    see the following section of the documentation: Updating the State of a Document

    Dan

    Add comment
    10|10000 characters needed characters exceeded