cancel
Showing results for 
Search instead for 
Did you mean: 

Facing problem in using Connection Pool

Former Member
0 Kudos

Hi All,

I am trying to use connection pool concept in EP application development. At start of application I am allocating 50 connections whenever an application is callled. The problem is once application is closed connection pool is not releasing connections it is using. So after few calls number of connections limit is reached and hence application is not running. So please let me know what is solution. Folllowing is the code used for connection pool.

=======================================================

JCO.addClientPool(POOL_NAME,50,strR3Client,strR3User,strR3Pwd,strR3LoginLan,strR3IPAddress,strR3SysID);

****************************************

//client = JCO.getClient(CreateConnection.POOL_NAME);

//JCO.releaseClient(client);

-


This is part of code which I am using.After this is it required to destroy connection pool also. If yes please guide me.

Regards,

Gangadharayya.

View Entire Topic
Former Member
0 Kudos

Hi,

You do not necessarily need to destroy connections, so avoid writing that code.

Normally when when using connection pools you release the connection back to the pool, which takes care of your connection management.

Hope that helps,

good luck,

Sudhir