Hi
We are consuming RFCs in standalone portal applications. The connections are established using the following code:
IConnection conn = null; IInteraction ix = null; IConnectorGatewayService connGwService = null; ConnectionProperties connProp = null; connGwService = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY); connProp = new ConnectionProperties(request.getLocale(), (IPrincipal)request.getUser()); String backendSysAlias = request.getComponentContext().getProfile().getProperty("SystemAlias"); conn = connGwService.getConnection(backendSysAlias , connProp);
The connections are closed using this code:
ix.close(); conn.close();
This seems to be working most of the time. However, sometimes the connections fail to close. These connections are visible in NWA-> JCo Monitoring as IDLE connections. As these are not being closed, the respective backend connections persist and are visible in SM04 in my ABAP system.
We have already set the connection lifetime and cleanup interval parameters in connection pooling parameters of SAPFactory but to no avail.
Please help in guiding how to resolve this issue.
Regards
Ramanender Singh