cancel
Showing results for 
Search instead for 
Did you mean: 

SAP JCo3 connection pool instance release

former_member225041
Participant
0 Kudos

Hi Experts,

I am using SAP JCo3 version to connect SAP from remote Java application.I have created connection pool with JcoDestination.

I want to know how to release a Jcodestination (pool instance)once its finishes with the functionalities so that connection pool can be managed properly.

Thanks In advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think we dont need to close the connection. Anyway we define Connection Timeout(ms) while JCO Destionations configurations. I guess that is enough.

Size

Currently used

Maximum used

Max.connections

Max.pool size

Connection Timeout(ms)

Max. wait time(ms)

Timeout Check Period(ms)

See the information about connection closing in below link:

http://www.winfobase.de/lehre/lv_materialien.nsf/intern01/FB09D79A41930E34C125709F0046180C/$FILE/Tip...

Regards,

Charan

former_member225041
Participant
0 Kudos

Hi Charan,

Thanks for providing above information.

But i want to release JcoDestination dynamically and not by providing fix expiry value.

Is there any way so that i can release the connection once done with the connection pool ?

Thanks in advance,

Former Member
0 Kudos

Hi,

I think you are connecting to R/3 using JCO in norma java class through JCO destinations. I dont have solution to close the connections in this case.

But If you are using Adaptive RFC Models to connect to R/3 throug JCO destinations. The below code helps to close the connection if alive.

testModelInst = (TestModel) WDModelFactory.getModelInstance(TestModel.class);
testModelInst.disconnectIfAlive();

Regards,

Charan