summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-09-25 13:59:42 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-09-25 13:59:42 +0000
commitcc03466f753afb6a1feb2f203966ba0672ddae95 (patch)
tree7e9a52db8745d86e66df1e5f23bf40f3fcca8125 /BKUOnline/src/main
parente21dd5249d5fa19c5619847922cf8cdea95e3145 (diff)
downloadmocca-cc03466f753afb6a1feb2f203966ba0672ddae95.tar.gz
mocca-cc03466f753afb6a1feb2f203966ba0672ddae95.tar.bz2
mocca-cc03466f753afb6a1feb2f203966ba0672ddae95.zip
webservice timeout
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@71 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main')
-rw-r--r--BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java8
-rw-r--r--BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java2
2 files changed, 8 insertions, 2 deletions
diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java
index 8e61230c..bb552002 100644
--- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java
+++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java
@@ -32,12 +32,18 @@ import at.gv.egiz.stal.STALFactory;
*/
public class RequestBrokerSTALFactory implements STALFactory {
+ private long timeout;
+
@Override
public STAL createSTAL() {
- return new STALRequestBrokerImpl();
+ return new STALRequestBrokerImpl(timeout);
}
@Override
public void setLocale(Locale locale) {
}
+
+ public void setTimeout(long millisec) {
+ timeout = millisec;
+ }
}
diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java
index 6aabdae4..560282ac 100644
--- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java
+++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java
@@ -33,7 +33,7 @@ import java.util.List;
public interface STALRequestBroker extends STAL {
public static final int ERR_6000 = 6000;
- public static final long TIMEOUT_MS = 1000*60*3; //3mn
+ public static final long DEFAULT_TIMEOUT_MS = 1000*60*5; //5mn
public List<STALRequest> nextRequest(List<STALResponse> response);