Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disconnect JCO Connection

Hi,

In WebdynPro Application without using Adaptive RFC, we are able to disconnect a connection after few seconds as we using disconnect() method for that.

But for a WebdynPro Application using Adaptive RFC, we are not able to disconnect a connection as fast as we were able to do in first case.

We are using following to disconnect:

wdContext.currentInputElement().modelObject().modelInstance().disconnectIfAlive();

In SM04 transaction, we observed that the connection(Adaptive RFC) is taking more time to close than it is taking for without Adaptive RFC WD application. The connection still exists even the memory utilized becomes 0 MB.

Also, when we are not disconnecting in Adaptive RFC WD application, then memory is utilized as long as connection exists. But, when we are disconnecting the connection, the memory utilized is 0 MB though the connection still exists.

While creating the JCo connection for metadata and modeldata we gave:

Max pool size : 5

Max connection: 1000

Connection Timout (msec.) : 1000

Maximum Waiting Time (msec.): 5000

Can anybody suggest how to disconnect the connection to overcome above problem?

Thanks and Regards,

Vaibhav

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question