Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

WDJava JCO connections

Hi All,

I have created an application where Iam connectiong to SAPR3 and doing the opperations. Every thing is working fine.

I have created two JCos, namely MyAppsNameJcoModel and MyAppsNameJcoMeta in the ContentAdministration -->WDContent -->Create JCO

Now the problem is If I test the applications through multiple logins simoultaniously, after some time JCO pool is exhausting and I am not able to connect.

Is there any way to release the JCos.

More over please suggest me on:

Is there any process to create a JCO dynamically and use that name while creating the Model.

Please help me...



Former Member replied

Hi Srini,

Both lines will do the same work but input_articletype.modelInstance().disconnectIfAlive(); will first check if the instance is active then it will disconnect it.

One suggestion use this line in finally block as if some exception occurs then it will disconnect the JCo and that might be the reason you are getting this error.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question