cancel
Showing results for 
Search instead for 
Did you mean: 

Connection to SAP always open or open/do work/close every time?

Former Member
0 Kudos

I'm working on a Web service that will run 24 hours a day. A third party program written in JAVA will call my Web service, which will connect to SAP, call a BAPI and return data or write data to SAP.

In this case is it better to have a connection to SAP always open or open/do work/close the connection every time?

I have no estimation of how many users at a time will call my Web Service.

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos

You should avoid having too many RFC connection open in parallel (because the Gateway process limits it anyway). On the other hand you should also not keep an RFC connection in idle for too long (because the Gateway may have a timeout).

A good idea is to use NCo's connection pool feature that lets allow you to specify some of those parameter easily from your web.config file.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, S

Can you send your code over hitendra@itssurat.com

Hitendra