You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2006/12/11 20:01:08 UTC
svn commit: r485818 -
/incubator/uima/uimaj/trunk/uimaj-adapter-soap/src/main/java/org/apache/uima/adapter/soap/AxisResourceServiceManager.java
Author: alally
Date: Mon Dec 11 11:01:08 2006
New Revision: 485818
URL: http://svn.apache.org/viewvc?view=rev&rev=485818
Log:
Removed server-side timeout value for services. Updated documentation and examples.
UIMA-34: https://issues.apache.org/jira/browse/UIMA-34
Modified:
incubator/uima/uimaj/trunk/uimaj-adapter-soap/src/main/java/org/apache/uima/adapter/soap/AxisResourceServiceManager.java
Modified: incubator/uima/uimaj/trunk/uimaj-adapter-soap/src/main/java/org/apache/uima/adapter/soap/AxisResourceServiceManager.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-adapter-soap/src/main/java/org/apache/uima/adapter/soap/AxisResourceServiceManager.java?view=diff&rev=485818&r1=485817&r2=485818
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-adapter-soap/src/main/java/org/apache/uima/adapter/soap/AxisResourceServiceManager.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-adapter-soap/src/main/java/org/apache/uima/adapter/soap/AxisResourceServiceManager.java Mon Dec 11 11:01:08 2006
@@ -65,14 +65,6 @@
public static final String PARAM_NUM_INSTANCES = "numInstances";
/**
- * The name of the deployment parameter whose value is the maximum time (in milliseconds) to wait
- * when attempting to acquire a resource from the pool. If this period elapses an exception will
- * be thrown back to the client. A value of 0 (the default if no value is specified) will cause
- * the service to wait forever.
- */
- public static final String PARAM_TIMEOUT_PERIOD = "timeoutPeriod";
-
- /**
* The name of the deployment parameter whose value is a boolean indicating whether to write log
* messages during each service invocation. This currently applies only to Analysis Engine
* services.
@@ -142,20 +134,6 @@
+ " not valid. Check your deployment descriptor file (WSDD)");
}
- // Get the timeout period
- String timeoutStr = (String) self.getOption(PARAM_TIMEOUT_PERIOD);
- int timeout;
- if (timeoutStr == null) {
- timeout = 0; // default value
- } else {
- try {
- timeout = Integer.parseInt(timeoutStr);
- } catch (NumberFormatException e) {
- throw new Exception("Invalid Configuration - " + PARAM_TIMEOUT_PERIOD
- + " not valid. Check your deployment descriptor file (WSDD)");
- }
- }
-
// Get whether to enable logging
String enableLogStr = (String) self.getOption(PARAM_ENABLE_LOGGING);
boolean enableLog = "true".equalsIgnoreCase(enableLogStr);
@@ -164,7 +142,6 @@
serviceImpl = (ResourceService_impl) aServiceImplClass.newInstance();
HashMap initParams = new HashMap();
initParams.put(AnalysisEngine.PARAM_NUM_SIMULTANEOUS_REQUESTS, new Integer(numInstances));
- initParams.put(AnalysisEngine.PARAM_TIMEOUT_PERIOD, new Integer(timeout));
serviceImpl.initialize(resourceSpecifier, initParams);
// disable logging for Analysis Engines if deployer so indicated