summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/callback/SessionServer.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-09-09 15:11:18 -0230
committerMatthew Newhook <matthew@zeroc.com>2009-09-09 15:11:18 -0230
commitbbda11a7fdbcd6717029d4836e27931250d2360b (patch)
treea8ab1fe5377baa835c70e986c3313c169f53b362 /cpp/demo/Glacier2/callback/SessionServer.cpp
parentFixed bug 4146 - re-throwing exception with fillInStackTrace (diff)
downloadice-bbda11a7fdbcd6717029d4836e27931250d2360b.tar.bz2
ice-bbda11a7fdbcd6717029d4836e27931250d2360b.tar.xz
ice-bbda11a7fdbcd6717029d4836e27931250d2360b.zip
http://bugzilla/bugzilla/show_bug.cgi?id=2839
In the process of fixing this bug I added ice_ping to the Glacier2 router and updated the callback demo as described. I did not update the VB demo/Glacier2/callback, nor the windows project files.
Diffstat (limited to 'cpp/demo/Glacier2/callback/SessionServer.cpp')
-rw-r--r--cpp/demo/Glacier2/callback/SessionServer.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/cpp/demo/Glacier2/callback/SessionServer.cpp b/cpp/demo/Glacier2/callback/SessionServer.cpp
deleted file mode 100644
index 2311627245c..00000000000
--- a/cpp/demo/Glacier2/callback/SessionServer.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <Ice/Ice.h>
-#include <SessionI.h>
-
-using namespace std;
-
-class SessionServer : public Ice::Application
-{
-public:
-
- virtual int run(int, char*[]);
-};
-
-int
-main(int argc, char* argv[])
-{
- SessionServer app;
- return app.main(argc, argv, "config.sessionserver");
-}
-
-int
-SessionServer::run(int argc, char* argv[])
-{
- if(argc > 1)
- {
- cerr << appName() << ": too many arguments" << endl;
- return EXIT_FAILURE;
- }
-
- Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("SessionServer");
- Glacier2::PermissionsVerifierPtr dpv = new DummyPermissionsVerifierI;
- adapter->add(dpv, communicator()->stringToIdentity("verifier"));
- Glacier2::SessionManagerPtr sm = new SessionManagerI;
- adapter->add(sm, communicator()->stringToIdentity("sessionmanager"));
- adapter->activate();
- communicator()->waitForShutdown();
- return EXIT_SUCCESS;
-}