on 01-20-2009 9:54 AM
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...
Regards,
Srinivas
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.
Regards
Narendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this PDF on JCO programming:
Blog: /people/tarun.telang2/blog/2005/10/03/debugging-a-rfc-call-using-jco-api-part-2
As mentioned by Narendra, you can disconnect the JCO programatically when needed.
<ModelName>.modelInstance().disconnectIfAlive()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srini,
Check the JCo Pool Configuration settings of your JCO Destination. This message normally comes when the maximum connections has been reached. Increase the "Maximum Connections" to some number depending on the usage. A good habit is to disconnect the jco connection after executing the same in your webdynpro code if you don't want it to be synchronous.
<ModelName>.modelInstance().disconnectIfAlive()
This will certainly help you
Regards
Narendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for your reply, it is so helpfull. Please clarify me this thing...
Zhr_Rfc_Ess_Integration_Input input_articletype=new Zhr_Rfc_Ess_Integration_Input();
wdContext.nodeZhr_Rfc_Ess_Integration_Input().bind(input_articletype);
try {
my coding....
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportSuccess("Exception>>>"+e);
}
finally
{
try
{
input_articletype.modelInstance().getCurrentlyUsedJcoClient().disconnect();
//plese tell me what is the difference between these two...
input_articletype.modelInstance().disconnectIfAlive();
}
catch(Exception e)
{
}
}
Regards,
Srinivas
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.