on 10-03-2006 9:27 PM
Hello everyone,
I'm having a random problem while accessing SAP functions on my applications.
Sometimes i get this message:
Could not create JCOClientConnection for logical Systems: WD_MODELDATA_DEST - Model: class com.xxx.sap.NameController.
Please assure that you have configured the RFC connections and/or logical system name properly for this model.
A friend tells me that this has to do with the fact that i use one model per SAP function ,
and a custom controller for each unique model.
This creates too many connections and launches the error.
Can anyone tell me how to solve this problem without
having to reimport all my functions into one single model and one single custom controller ??
My biggest problem is that doing that would increase the time spent on project development dramatically.
Thank you everyone,
Nuno Santos
Hi,
<b>Questions</b>
1. Are all connections closed (timeout, explicit logout link ?)
2. Is the number of connections kept to a reasoable level ?
If the answer is yes to both, is <b>raising the possible number of simultaneous connections acceptable in the JCo configuration</b> ?
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guillaume,
My answers:
1. All connections are closed by time-out, but i would really apreciate if someone could explain how to explicitly close them after calling them.
2. No. That is the big problem. This was my first project, and in a very simplistic (and stupid) way i created a webdynpro model for each SAP function that i call. This means that an application may call 5 or 6 functions during it's runtime, meaning 5 or 6 connections. Multiply this by a few hundred users...
What are my choices here?
Help will be really apreciated.
Thanks to everyone,
Nuno Santos
Solved it on my own with lots of work ! I really created a unique model and added there all the dozens of sap functions that i needed in my applications. Now i'm using only one model, and the number of connections diminished dramatically . Still, if there are users enough using the portal at the same time to launch the error again, i'll close the connections lika Anand said. Thank you all.
Nuno,
Write these lines of code after executing the RFC.
<Model Name> anyName =
(<Model Name>)WDModelFactory.getModelInstance(<Model
Name>.class);
anyName.disconnectIfAlive();
Hope this would solve your problem.
Regards,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.