WDJava JCO connections
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...
Narendra Singh replied
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.