on 06-20-2009 1:14 PM
Hi,
I connect to sap system using adaptive rfc in web dynpro to execute certain bapis.(portal , web dynrpo and sap r3 are on three different systems).
All is fine except for one bapi, which we know has a problem and takes around 30 minutes to execute
(I executed this bapi directly in the r3 and confirmed this) for certain input parameters.
When this bapi is invoked from my web dynpro application , the web dispathcer times out after 60 seconds as it did not receive any response from the WAS.No problem with this...
But after this ..all subsequent navigations or requests to the WAS fails with similar connection timeout message and nothing works for the user.
I guess the non performing bapi which was invoked by the user is the cause and is still executing in the backgroud on web dynrpo engine and on the sap r3 and causing futher requests to fail.
My question is: Is there a way I can control the model.execute() in the web dynpro code by specifying a time in secs for example ..so that web dynpro can terminate the execution after waiting for certain time
and report it with an exception or error.
(I guess there should be some way to deal as web dynrpo is single threaded and due to bapi not performing the entire user session goes for a toss)..
Or any other way this can be dealt with.
let me know.
Regards,
Ashok
Hi Ashok,
The JCo settings have two parameters which can be set as per the requirement:
1) Connection Timeout
2) Maximum Waiting Time
Set these parameters as per the requirement.
Also, refer to the blog on JCo settings for more information.
Try separating out the BAPI that is timing out to a separate set of JCos.
Regards,
Kartikaye
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
These parameters matter for getting a connection from the pool and returning to them optimally.
But my question is after a connection has been established and execution of bapi has started and if we know that the bapi has problems where it may take its own time (for eg 30 mins)...How to terminate such executions.
Any idea Pls let me know.
Regards,
Ashok
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.