Skip to Content
0

How to close WebI Processor Server Connections using REstful SDK?

Jun 06, 2017 at 08:06 AM

48

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Daniel Paulsen
Jun 06, 2017 at 04:43 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded