diff options
Diffstat (limited to 'java/src/Ice/ObjectAdapterI.java')
-rw-r--r-- | java/src/Ice/ObjectAdapterI.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/Ice/ObjectAdapterI.java b/java/src/Ice/ObjectAdapterI.java index 0122210a691..448a8c7795e 100644 --- a/java/src/Ice/ObjectAdapterI.java +++ b/java/src/Ice/ObjectAdapterI.java @@ -615,8 +615,9 @@ public final class ObjectAdapterI extends LocalObjectImpl implements ObjectAdapt setLocator(_instance.referenceFactory().getDefaultLocator()); } - int threadNum = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.Size"); - if(threadNum > 0) + int size = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.Size"); + int sizeMax = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.SizeMax"); + if(size > 0 || sizeMax > 0) { _threadPool = new IceInternal.ThreadPool(_instance, _name + ".ThreadPool", 0); } |