summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2/Blobject.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-08-11 15:16:48 +0000
committerMarc Laukien <marc@zeroc.com>2004-08-11 15:16:48 +0000
commitcf4f48c92865a0ee086402f238c8b510d1c9d43a (patch)
tree702367a199509c4f2a321e60f9f51d54c1d546af /cpp/src/Glacier2/Blobject.cpp
parentmore glacier2 stuff (diff)
downloadice-cf4f48c92865a0ee086402f238c8b510d1c9d43a.tar.bz2
ice-cf4f48c92865a0ee086402f238c8b510d1c9d43a.tar.xz
ice-cf4f48c92865a0ee086402f238c8b510d1c9d43a.zip
more glacier 2 and reverse proxy work
Diffstat (limited to 'cpp/src/Glacier2/Blobject.cpp')
-rw-r--r--cpp/src/Glacier2/Blobject.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Glacier2/Blobject.cpp b/cpp/src/Glacier2/Blobject.cpp
index 779dc292615..7f1f5244ca5 100644
--- a/cpp/src/Glacier2/Blobject.cpp
+++ b/cpp/src/Glacier2/Blobject.cpp
@@ -13,8 +13,14 @@ using namespace std;
using namespace Ice;
using namespace Glacier;
+static const string serverAlwaysBatch = "Glacier2.Server.AlwaysBatch";
+static const string clientAlwaysBatch = "Glacier2.Client.AlwaysBatch";
+
Glacier::Blobject::Blobject(const CommunicatorPtr& communicator, bool reverse) :
- _logger(communicator->getLogger())
+ _logger(communicator->getLogger()),
+ _alwaysBatch(reverse ?
+ communicator->getProperties()->getPropertyAsInt(serverAlwaysBatch) > 0 :
+ communicator->getProperties()->getPropertyAsInt(clientAlwaysBatch) > 0)
{
_requestQueue = new RequestQueue(communicator, reverse);
_requestQueueControl = _requestQueue->start();