Controling RFC connections lifetime in Visual Composer
Controlling the connectivity from SAP NetWeaver java server to your backend system is always an important topic.
In Visual Composer, connections to an R/3 or ECC backend systems are kept open and in a “used” state for as long as the application is still running. This can cause major performance problem and also consume huge amount of system resources since many connection objects need to exist in order to serve many users.
When your scenario does not require such state-full connection, you can configure the service to run in a state-less mode and reuse the connection pool.
So, how can you really control the way Visual Composer manages the connections of RFC / BAPIs? Here’s what you should do:
- Click on the Search panel.
- Search for a certain BAPI / RFC
- Drag the service to the design board.
- 4. Double click on the service and check / uncheck the Keep connection open checkbox.
Note: When this checkbox is ticked, the behavior is the same as before, i.e. the connections stays used as long as the application is running in the browser.
When this checkbox is unticked, the connection is returned to the connection pool immediately after it’s used.
That’s it! Easy, isn’t it?
*This feature is available from NetWeaver 7.2 SP4 and 7.3 SP2 onwards.