on 07-01-2009 8:02 PM
Based on various SAP documentation, for optimization purpose, it is recommended that Model objects in the same application share the same JCo connection by calling setConnectionProvider() method.
For example, an application may have 4 Model objects (M1, M2, M3 and M4) that will make RFC calls to the same R/3 back-end.
My understanding is that only one JCo destination (ie 1 JCo pool) should be used; also, in order to use the same JCo connection, setConnectionProvider() method should be called.
Here are my questions:
1) Is there some more complete codes snippets that implement that concept ".
Instantiation of M1?
Instantiation of M2?
Instantiation of M3?
Calling setConnectionProvider() by M2 or M3?
Releasing the connection to the pool? (also, is this needed)?
2) what can be the drawback(s) of the connection sharing strategy if the application has several model objects (example 10 model objects)?
Regards,
Hortense Andrian
Hi
Check this PDF link
Hope it will help you
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure about the setConnectionProvider() method and sharing of JCO. But for your information -- Did you refer a "WebDynpro" application as "Application with 10 model objects" in your message? I have more than one DC (Development Components). I maintain all the models in one DC and maintain that DC as models DC. In my remaining DC's, i use one or more models from this models DC as per my requirements. This shows better performance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.