NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{scrollbar:icons=false}

h1. Question: How do we increase time-out period when running CQL queries?

*Topic*: caArray Installation and Upgrade

*Release*: caArray 2.3.X and above

*Date entered*: 02/14/2011

[Related forum posting|https://cabig-kc.nci.nih.gov/Molecular/forums/viewtopic.php?f=8&t=652&p=2745&hilit=cql&sid=412b5e765b234bb643951dfa7c47f689#p2745]



h2. Answer

The first option is to set a longer timeout on the client side. This requires a code change of a Java file in the caGrid 'data' project. Here are the steps to make the code change:

* In your caGrid distribution, find:
{code}$CAGRID_HOME/projects/data/src/java/common/gov/nih/nci/cagrid/data/client/DataServiceClient.java{code}
* In this class, find the createPortType method;
* Just before the "return port;" line, add the following with your timeout value specified:
{code}((Stub) port).setTimeout(<YOUR_TIMEOUT_IN_MSECS>);{code}

The second option is to extend DataServiceClient.java in your own project and override createPortType to establish the port using a configurable timeout.

A feature request has been sent to the caArray development team to make this parameter easier to configure in the future.

h2. Have a comment?

Please leave your comment in the [caArray End User Forum|https://cabig-kc.nci.nih.gov/Molecular/forums/viewtopic.php?f=6&t=577].

{scrollbar:icons=false}