cancel
Showing results for 
Search instead for 
Did you mean: 

Java Web Dynpro: when Adaptive RFC sessions expires?

Former Member
0 Kudos

In WD_MODELDATA_DEST a userid/password is specified (no SSO is active).

The first time a model is used, I see the userid's session in SM04 but I do not understand when this session will be closed and from who.

Setting rdisp/gui_auto_logout parameters in RZ10 does not have effect.

Is there any parameter to be set to force the logout of rfc idle sessions?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!

Did you check the settings on the JCo-destination in the Web Dynpro Content Administrator? Settings like size, max connections and timeout for the JCo.Pool are configured there.

Regards,

Thomas

SergioFerrari
Active Contributor
0 Kudos

Thanks Thomas, I checked but it's not yet clear...

Former Member
0 Kudos

Hi,

My understanding was the RFC session should be controlled from the R/3 machine because the RFC's reside in the R/3 box.

With reference to info provided by Thomas, i check the JCo destinations and saw that 'Connection Timeout(sec)' which controls the time period after which the connection is release to the pool.

Hope that helps.

Regards,

S.Divakar

SergioFerrari
Active Contributor
0 Kudos

Connection Timeout(sec) is set to 10 sec but sessions remain active in SM04 for hours.

The parameter does not seem to be relevant for sessions expiration.

Former Member
0 Kudos

Hi

I guess the Connection Timeout is the time that specifies how long an application should wait for a connection to be obtained.

I too have the same problem. Probably i'll try solution from the weblog.

Thanks,

Rajit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sergio,

You have a option to close the RFC Connection after executing the RFC.

Use <ModelName>.modelInstance().disconnectIfAlive()

after execting the RFC.

Other option is to set the timeout for the connection pool configuration to 0.

Check the following blog for more details.

/people/sap.user72/blog/2005/01/08/adaptive-rfc-models-in-web-dynprosome-pointers

Regards,

Shubham