cancel
Showing results for 
Search instead for 
Did you mean: 

Session Control in backend

MauricioMiao
Contributor
0 Kudos

Hi,

I developed a WD application that reads data from a backend system using Adaptive RFC.

I noticed that when I leave the WD Application, the session that was oppened in backend remains there until timeout is reached, so here is my question:

There is a way to close the sessions in backend system when the user navigates to another page or go to another iView in Portal, or even close the Portal?

I noticed that none of this situations close the backend session.

For BSP applications I found a way to control it for both standalone and portal integrated applications.

Regards,

Mauricio

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please refer to the code below.

<RFC Model> empModel = (<RFC Model>) WDModelFactory.getModelInstance(<RFC Model>.class);

empModel.disconnectIfAlive();

This will disconnect the connection to the R/3 box and it must be put in the finally block.

Regards,

S.Divakar

MauricioMiao
Contributor
0 Kudos

Hello,

Thanks for both help.

I will try it and as soon as I have the result I will reward the answers.

Now I am working in another problem with OVS stuff.

Thanks,

Mauricio

Answers (1)

Answers (1)

Former Member
0 Kudos

Mauricio,

Do you use different destinations for meta-data and application data? If so, which one remains open?

VS