cancel
Showing results for 
Search instead for 
Did you mean: 

RFC connection not closing on the R/3 side

Former Member
0 Kudos

Hi,

I have some iview that close the connection properly and other that keep the connection open on the R/3 side. Should i be adding something else to this code?

// Close the Connection if one exists

if (connection != null) {

try {

interaction.close(); //close IInteration

connection.close(); //close IConnection

cgService.destroy(); //destroy IConnectorGatewayService

if(logger.isActive()) {

logger.log("Connection is closed", Level.INFO);

}

}

catch (Exception e) {

}

connection = null;

}

Thanks

Jean Seguin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

i think it should be connection pool. Even though you close the connection, the connectors still keep them open for further access.

Former Member
0 Kudos

How do i setup the connection pooling, to use it or not?

Thanks

Jean Seguin

Former Member
0 Kudos

or try this one..

Go to the bottom of the tutorial, you will find the configuration...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bc9baf90-0201-0010-479a-b49...