Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Timeout settings

837855Sep 2 2011 — edited Sep 19 2011
Is it possible to dynamically access the time out (eg. Web functional object timeout)? If yes, how do I change it?

The reason why I want to do this is because right now if a script is run across multiple machines, the timeout setting has to be changed for each machine in Openscript preferences.
I'd prefer my script to change the timeout value to suit the task in hand.


Thank you,
Narayan
This post has been answered by 834498 on Sep 19 2011
Jump to Answer

Comments

876605
Narayan,

Unfortunately it seems like the Default Object Timeout is a property of the OpenScript engine and is not directly correlated to any specific. As such, I don't think there is a way to set a certain script to say have a timeout of 30 seconds while another has a timeout of 60. Is there a specific reason as to why you would want this? Maybe there is an underlying problem you must troubleshoot that would bear this need? An alternative is to up the think time at that specific step that you think needs a little longer? Care to elaborate as to why you would need the timeout to by dynamic for each script so we can more effectively help you?


Johnny
834498
If I remember correctly, you can set the object timeout programmaticaly like getSetting().set(xxx,sec)
So i guess it could help you to position the timeout depending on the host you execute the scripts (you can get the hostname using java code and then use a databank).

JB
837855
Johnny,

We run multiple scripts across many machines. Some applications are slower than others so each script requires a different time-out (to get the most out of it).
Right now, the only way (that I am aware of) to change the time out is through openscript preferences.

Before each script is run, this requires an additional manual step of fixing time-out. If only this was possible through code, it would be a better practice.


JB,

Do you know what exactly the setting name might be? It would be of great help.


Thank you,
Narayan
834498
Answer
To print all the settings in the console tab during execution:
System.out.print(getSettings())

To set a particular setting:
getSettings().set(setting_name, setting_value);

The one you probably want to set:
web.event_time_out=60

So it should be :
System.out.print(getSettings());
getSettings().set("web.event_time_out",19);
System.out.print(getSettings());

JB
Marked as Answer by 837855 · Sep 27 2020
837855
Hi JB,

I just tried it out with a line of code that would fail and it worked. Thank you for your efforts!

Thank you,
Narayan
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 17 2011
Added on Sep 2 2011
5 comments
270 views