Skip to Content
author's profile photo Former Member
Former Member

Connection Pooling with SAP.NET connector


I'm using the connectionpool class of the SAP.NET connector...


where BPartnerProxy is the proxy object.

BPartnerProxy.Connection = SAP.Connector.SAPConnectionPool.GetConnection(ConfigurationSettings.AppSettings("SAPConnectionString"))

and then the code to return the connection after the RFC call is made:


How do you manage the pool i.e. create a pool of x number of connections or see how many connections are left in the pool...?


Nick Wright

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 23, 2003 at 12:01 PM

    Hello Nick,

    the connection pool is configured using the app.config / web.config file of you application.

    Here's an example:

    Statistic about the connection pool is currently not available. This feature will be added in next version.


    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Edwin,

      the connection pool is not made to limit concurrent ACTIVE connections; it's made to reuse NON-ACTIVE connections.

      There is no featuere to limit active connections in NCo, but you can easily add it by your own: Whenever you creae a connection (or fetch it from the pool), you increase a counter. When you close it or return it to pool, you decrease the counter. When the counter reaches a limit during creation of a connection, you block.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.