summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/NestedUpcall')
-rw-r--r--TAO/tests/NestedUpcall/Makefile69
-rw-r--r--TAO/tests/NestedUpcall/NestedUpCalls_Test.cpp90
-rw-r--r--TAO/tests/NestedUpcall/NestedUpCalls_i.h99
-rw-r--r--TAO/tests/NestedUpcall/NestedUpcall.dsw41
-rw-r--r--TAO/tests/NestedUpcall/README86
-rw-r--r--TAO/tests/NestedUpcall/Reactor.idl52
-rw-r--r--TAO/tests/NestedUpcall/client.cpp306
-rw-r--r--TAO/tests/NestedUpcall/client.dsp138
-rw-r--r--TAO/tests/NestedUpcall/client.h94
-rw-r--r--TAO/tests/NestedUpcall/eh_i.cpp47
-rw-r--r--TAO/tests/NestedUpcall/eh_i.h30
-rw-r--r--TAO/tests/NestedUpcall/reactor_i.cpp78
-rw-r--r--TAO/tests/NestedUpcall/reactor_i.h36
-rw-r--r--TAO/tests/NestedUpcall/server.cpp175
-rw-r--r--TAO/tests/NestedUpcall/server.dsp137
-rw-r--r--TAO/tests/NestedUpcall/server.h98
-rw-r--r--TAO/tests/NestedUpcall/svc.conf49
17 files changed, 0 insertions, 1625 deletions
diff --git a/TAO/tests/NestedUpcall/Makefile b/TAO/tests/NestedUpcall/Makefile
deleted file mode 100644
index aed436a4fdd..00000000000
--- a/TAO/tests/NestedUpcall/Makefile
+++ /dev/null
@@ -1,69 +0,0 @@
-#----------------------------------------------------------------------------
-#
-# $Id$
-#
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-ifndef TAO_ROOT
- TAO_ROOT = $(ACE_ROOT)/TAO
-endif # ! TAO_ROOT
-
-LDLIBS = -lorbsvcs -lTAO
-
-IDL_SRC = ReactorC.cpp ReactorS.cpp
-PROG_SRCS = $(IDL_SRC) server.cpp client.cpp #tmplinst.cpp
-
-LSRC = $(PROG_SRCS)
-
-NESTEDUPCALLS_SVR_OBJS = ReactorS.o ReactorC.o server.o reactor_i.o
-NESTEDUPCALLS_CLT_OBJS = ReactorS.o ReactorC.o client.o eh_i.o
-TEST_OBJS = NestedUpCalls_Test.o
-
-BIN = server client NestedUpCalls_Test
-BUILD = $(BIN)
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-VBIN = $(BIN:%=%$(VAR))
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(TAO_ROOT)/rules.tao.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-include $(TAO_ROOT)/taoconfig.mk
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -L$(TAO_ROOT)/orbsvcs/Naming_Service
-CPPFLAGS += -I$(TAO_ROOT)/orbsvcs
-
-.PRECIOUS: ReactorC.h ReactorC.i ReactorC.cpp
-.PRECIOUS: ReactorS.h ReactorS.i ReactorS.cpp
-
-server: $(addprefix $(VDIR),$(NESTEDUPCALLS_SVR_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-client: $(addprefix $(VDIR),$(NESTEDUPCALLS_CLT_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-NestedUpCalls_Test: $(addprefix $(VDIR),$(TEST_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-realclean: clean
- -/bin/rm -rf ReactorS.* ReactorC.*
-
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/TAO/tests/NestedUpcall/NestedUpCalls_Test.cpp b/TAO/tests/NestedUpcall/NestedUpCalls_Test.cpp
deleted file mode 100644
index 8d06ea90cba..00000000000
--- a/TAO/tests/NestedUpcall/NestedUpCalls_Test.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/NestedUpCalls
-//
-// = FILENAME
-// NestedUpCalls_Test.cpp
-//
-// = DESCRIPTION
-// This example tests the NestedUpCalls server and client
-// components. The test forks and execs a process to run
-// the client. The clerk and the server
-// communicate for a short duration after which the main process
-// kills both the processes. No command line arguments are needed
-// to run the test.
-//
-// = AUTHOR
-// Nagarajan Surendran
-//
-// ============================================================================
-
-#include "tests/test_config.h"
-#include "ace/Process.h"
-
-int
-main (int, char *[])
-{
- ACE_START_TEST ("NestedUpCalls_Test:");
-
- // Make sure that the backing store is not there. We need to make
- // sure because this test kills the Time Clerk and on some platforms
- // the Clerk is not allowed to do a graceful shutdown. By cleaning
- // the backing store here, we are sure that we get a fresh start and
- // no garbage data from a possible aborted run
-
- ACE_OS::unlink (ACE_DEFAULT_BACKING_STORE);
-
- ACE_Process_Options server_options;
- server_options.command_line ("./server -ORBport 0");
- ACE_Process server;
-
- if (server.spawn (server_options) == -1)
- ACE_ERROR_RETURN ((LM_DEBUG,
- "%n %p.\n",
- "Server fork failed"),
- 0);
- else
- ACE_DEBUG ((LM_DEBUG,
- "Server forked with pid = %d.\n",
- server.getpid ()));
-
- ACE_OS::sleep (5);
-
- ACE_Process_Options clerk_options;
- clerk_options.command_line ("./client -ORBport 0");
- ACE_Process clerk;
-
- if (clerk.spawn (clerk_options) == -1)
- ACE_ERROR_RETURN ((LM_DEBUG,
- "%p.\n",
- "Client spawn failed"),
- 0);
- else
- ACE_DEBUG ((LM_DEBUG,
- "Client forked with pid = %d.\n",
- clerk.getpid ()));
-
- ACE_DEBUG ((LM_DEBUG, "Sleeping...\n"));
- ACE_OS::sleep (10);
-
- if (clerk.terminate () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Terminate failed for clerk.\n"),
- -1);
-
- if (server.terminate () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Terminate failed for server.\n"),
- -1);
-
- // Since we kill the clerk process, on Win32 it may not do a
- // graceful shutdown and the backing store file is left behind.
- if (clerk.wait () != 0)
- ACE_OS::unlink (ACE_DEFAULT_BACKING_STORE);
-
- ACE_END_TEST;
- return 0;
-}
diff --git a/TAO/tests/NestedUpcall/NestedUpCalls_i.h b/TAO/tests/NestedUpcall/NestedUpCalls_i.h
deleted file mode 100644
index 73c3195c4fe..00000000000
--- a/TAO/tests/NestedUpcall/NestedUpCalls_i.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/IDL_Cubit
-//
-// = FILENAME
-// NestedUpCalls_i.h
-//
-// = AUTHOR
-// Andy Gokhale, Sumedh Mungee and Sergio Flores-Gaitan
-//
-// ============================================================================
-
-#if !defined (_NESTEDUPCALLS_I_H)
-#define _NESTEDUPCALLS_I_H
-
-//#include "cubitS.h"
-
-// Forward declarations.
-class NestedUpCalls_i;
-
-// Typedefs.
-typedef NestedUpCalls_i *NestedUpCalls_i_ptr;
-typedef NestedUpCalls_i_ptr NestedUpCalls_i_ref;
-
-class NestedUpCalls_i : public POA
-{
- // = TITLE
- // Illustrates how to integrate a servant with the generated
- // skeleton.
- //
- // = DESCRIPTION
- // Implementation of the cubit example at the servant side.
- // Cubes an octet, short, long, struct and union.
-public:
- NestedUpCalls_i (const char *obj_name = 0);
- // Constructor
-
- ~NestedUpCalls_i (void);
- // Destructor
-
-/* virtual CORBA::Octet cube_octet (CORBA::Octet o,
- CORBA::Environment &env);
- // Cube an octet
-
- virtual CORBA::Short cube_short (CORBA::Short s,
- CORBA::Environment &env);
- // Cube a short
-
- virtual CORBA::Long cube_long (CORBA::Long l,
- CORBA::Environment &env);
- // Cube a long
-
- virtual Cubit::Many cube_struct (const Cubit::Many &values,
- CORBA::Environment &env);
- // Cube a struct.
-
- virtual Cubit::oneof cube_union (const Cubit::oneof &values,
- CORBA::Environment &env);
- // Cube a union.
-
- virtual void cube_sequence (const Cubit::vector &input,
- Cubit::vector_out output,
- CORBA::Environment &env);
- // Cube a sequence.
-*/
- virtual void shutdown (CORBA::Environment &env);
- // Shutdown routine.
-};
-
-class NestedUpCalls_Reactor_i;
-
-typedef NestedUpCalls_Reactor_i *NestedUpCalls_Reactor_i_ptr;
-
-class NestedUpCalls_Reactor_i: public POA_Cubit_Factory
-{
- // = TITLE
- // NestedUpCalls_Reactor_i
- //
- // = DESCRIPTION
- // Factory object returning the cubit objrefs
-public:
- NestedUpCalls_Reactor_i (void);
- // Constructor.
-
- ~NestedUpCalls_Reactor_i (void);
- // Destructor.
-
- virtual Cubit_ptr make_cubit (const char *key,
- CORBA::Environment &env);
- // Make the cubit object whose key is "key".
-
-private:
- NestedUpCalls_i my_cubit_;
-};
-
-#endif /* _NestedUpCalls_i_H */
diff --git a/TAO/tests/NestedUpcall/NestedUpcall.dsw b/TAO/tests/NestedUpcall/NestedUpcall.dsw
deleted file mode 100644
index 512c7d017db..00000000000
--- a/TAO/tests/NestedUpcall/NestedUpcall.dsw
+++ /dev/null
@@ -1,41 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 5.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "client"=.\client.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "server"=.\server.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/TAO/tests/NestedUpcall/README b/TAO/tests/NestedUpcall/README
deleted file mode 100644
index a1147be10e4..00000000000
--- a/TAO/tests/NestedUpcall/README
+++ /dev/null
@@ -1,86 +0,0 @@
--*- indented-text -*-
-
-$Id$
-
- BACKGROUND
- ==========
-
-This example tests the scenario of nested upcalls in TAO. For
-example, a particular process may need to act in both the role of
-client and server. This interaction is common in situations where the
-process makes a twoway invocation on a remote servant, passing a local
-object reference 'o' to that servant. In the process of servicing
-that invocation, the servant makes a twoway invocation on 'o'.
-
-This example illustrates an interaction that should be familiar to
-anyone who's used ACE: the process of registering a handler with a
-Reactor. The EventHandler is the local object reference, and the
-Reactor the remote servant. NOTE: This example in no way should be
-construed as testimony that remote Reactors make sense or are in any
-way useful. It is merely a motivating example!
-
-You can either run the server in the background in the same window as
-the client or open a separate window for the client and server.
-
-The client and server by default make use of the Naming Service. The
-cubit server now has its own NamingServer implementation and hence you
-don't have to start the NamingService before starting the client and
-server.
-
- You just have to use the -s flags on both the server and
-client if you don't want to use the naming service.
-
- EXECUTION
- =========
-
-server:
--------
-
-% server [-d] [-s] [-ORBhost <serverhost>] [-ORBport <portnum>]
- [-o <ior_output_file>]
-
-Options:
--------
--s Tells the server not to use the Naming Service.
-
--d Debug flag (It is additive more -d flags will give debugging).
-
--o Outputs the ior file to the file
-
-Using -d turns on debugging messages. It is additive, i.e., the more
--d options provided, the more debugging you can get. At the moment,
-only 2 levels of debugging are implemented, and more than 2 -d options
-are ignored.
-
-
-client:
--------
-
-% client [-d] [-s] [-x] <-f ior_file> <-k ior> -n <iterations>
-
-Options:
--------
- d Debug flag
- s Don't Use the Naming Service
- x Tells the server to shutdown.
- f Reads the ior from the file
- k Reads the ior from commandline
-
- There are 3 ways of giving the IOR to the client:
-
- 1. From a file using the -f option. (This file can be produced using
- the -o option of the server.)
-
- 2. Directly on the commandline using the -k option.
-
- 3. Get it from the Naming Service (which is the default client
- behavior).
-
-NestedUpCalls_Test:
-------------------
-
- This is a simple test program which tests the server and
-client using the default options of the server and client. To test
-using this just run
-
- % NestedUpCalls_Test
diff --git a/TAO/tests/NestedUpcall/Reactor.idl b/TAO/tests/NestedUpcall/Reactor.idl
deleted file mode 100644
index ae70a317d8b..00000000000
--- a/TAO/tests/NestedUpcall/Reactor.idl
+++ /dev/null
@@ -1,52 +0,0 @@
-// $Id$
-//
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/NestedUpcall
-//
-// = FILENAME
-// Reactor.idl
-//
-// = DESCRIPTION
-// A simple test of nested upcalls using a structure we likely all
-// know and love.
-//
-// Existence of this interface should not be taken as testimony that
-// such a structure would work in ACE! There is no such thing as an
-// IDL interface to the Reactor (yet)!
-//
-// = AUTHORS
-// Chris Cleeland
-//
-// ============================================================================
-
-interface Reactor;
-
-interface EventHandler
-{
- Long peer ();
- // Returns an integer corresponding to the event handler's file
- // descriptor.
-
- UShort decrement (in Reactor r, in UShort num);
- // Decrements <num> by invoking the <decrement> operation on <r>
- // and returning that value, finally stopping when it gets to zero.
-};
-
-interface Reactor
-{
- Long register_handler (in EventHandler eh);
- // Turns around and queries <eh> for the peer.
-
- oneway void set_value ();
- // do-nothing oneway to check for proper operation.
-
- UShort decrement (in EventHandler eh, in UShort num);
- // Decrements <num> by invoking the <decrement> operation on <eh>
- // and returning that value, finally stopping when it gets to zero.
-
- void stop ();
- // Stops the reactor.
-};
-
diff --git a/TAO/tests/NestedUpcall/client.cpp b/TAO/tests/NestedUpcall/client.cpp
deleted file mode 100644
index e12541d9359..00000000000
--- a/TAO/tests/NestedUpcall/client.cpp
+++ /dev/null
@@ -1,306 +0,0 @@
-// $Id$
-
-#include "ace/Profile_Timer.h"
-#include "ace/Env_Value_T.h"
-#include "ace/Read_Buffer.h"
-#include "client.h"
-#include "eh_i.h"
-#include "orbsvcs/CosNamingC.h"
-
-#define quote(x) #x
-
-const int max_sequence_length = 10;
-// Limit the sequence length, otherwise the time to run the test
-// increases to fast....
-
-// Constructor.
-NestedUpCalls_Client::NestedUpCalls_Client (void)
- : nested_up_calls_reactor_key_ (0),
- shutdown_ (0),
- call_count_ (0),
- nested_up_calls_reactor_ior_file_ (0),
- f_handle_ (ACE_INVALID_HANDLE),
- use_naming_service_ (1)
-{
-}
-
-// Simple function that returns the substraction of 117 from the
-// parameter.
-
-int
-NestedUpCalls_Client::func (u_int i)
-{
- return i - 117;
-}
-
-// Reads the NestedUpCalls reactor ior from a file
-
-int
-NestedUpCalls_Client::read_ior (char *filename)
-{
- // Open the file for reading.
- this->f_handle_ = ACE_OS::open (filename,0);
-
- if (this->f_handle_ == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to open %s for writing: %p\n",
- filename),
- -1);
- ACE_Read_Buffer ior_buffer (this->f_handle_);
- this->nested_up_calls_reactor_key_ = ior_buffer.read ();
-
- if (this->nested_up_calls_reactor_key_ == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to allocate memory to read ior: %p\n"),
- -1);
- return 0;
-}
-
-// Parses the command line arguments and returns an error status.
-
-int
-NestedUpCalls_Client::parse_args (void)
-{
- ACE_Get_Opt get_opts (argc_, argv_, "dn:f:k:xs");
- int c;
- int result;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'd': // debug flag
- TAO_debug_level++;
- break;
- case 'f': // read the IOR from the file.
- result = this->read_ior (get_opts.optarg);
- if (result < 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to read ior from %s : %p\n",
- get_opts.optarg),
- -1);
- break;
- case 'k': // read the nestedupcalls IOR from the command-line.
- this->nested_up_calls_reactor_key_ =
- ACE_OS::strdup (get_opts.optarg);
- break;
- case 'x':
- this->shutdown_ = 1;
- break;
- case 's': // Don't use the TAO Naming Service.
- this->use_naming_service_ = 0;
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s"
- " [-d]"
- " [-f nested_up_calls_reactor-obj-ref-key-file]"
- " [-k nestedupcalls-obj-ref-key]"
- " [-x]"
- " [-s]"
- "\n",
- this->argv_ [0]),
- -1);
- }
-
- // Indicates successful parsing of command line.
- return 0;
-}
-
-// Execute client example code.
-int
-NestedUpCalls_Client::run (void)
-{
-
- TAO_TRY
- {
- // Create an EventHandler servant to hand to the other side...
- auto_ptr<EventHandler_i> eh_impl (new EventHandler_i);
- EventHandler_var eh = eh_impl->_this (TAO_TRY_ENV);
-
- // Get into the event loop briefly...just to make sure that the
- // ORB gets a chance to set things up for us to be a server.
- // What this really means is that there's a listening port.
- //
- // The bad thing is that we have to do something non-standard
- // such as call orb->run() with a zero timeout. It would be
- // nice if the spec gave us a standard way to do this.
- if (orb_->run (ACE_Time_Value::zero) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s: %p\n",
- argv_[0], "unable to get the ORB Core to listen"),
- -1);
-
- // Now, after all that, we can invoke an operation on the remote
- // side.
- CORBA::Long r = this->reactor_->register_handler (eh.in (), TAO_TRY_ENV);
-
- // We ought to have a result!
- ACE_DEBUG ((LM_DEBUG,
- "%s: received %d as return from register_handler ()\n",
- argv_[0], r));
-
- this->reactor_->set_value (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->reactor_->decrement (eh.in (), 5, TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->reactor_->stop (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- if (this->shutdown_)
- {
- dexc (this->env_, "server, please ACE_OS::exit");
- }
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("Nestedupcalls::run ()");
- return -1;
- }
- TAO_ENDTRY;
- return 0;
-}
-
-NestedUpCalls_Client::~NestedUpCalls_Client (void)
-{
- // Free resources
- // Close the ior files
- if (this->nested_up_calls_reactor_ior_file_)
- ACE_OS::fclose (this->nested_up_calls_reactor_ior_file_);
- if (this->f_handle_ != ACE_INVALID_HANDLE)
- ACE_OS::close (this->f_handle_);
-
- if (this->nested_up_calls_reactor_key_ != 0)
- ACE_OS::free (this->nested_up_calls_reactor_key_);
-}
-
-int
-NestedUpCalls_Client::init_naming_service (void)
-{
- TAO_TRY
- {
- CORBA::Object_var naming_obj =
- this->orb_->resolve_initial_references ("NameService");
- if (CORBA::is_nil (naming_obj.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to resolve the Name Service.\n"),
- -1);
- CosNaming::NamingContext_var naming_context =
- CosNaming::NamingContext::_narrow (naming_obj.in (),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- CosNaming::Name nested_up_calls_reactor_name (2);
- nested_up_calls_reactor_name.length (2);
- nested_up_calls_reactor_name[0].id = CORBA::string_dup ("NestedUpCalls");
- nested_up_calls_reactor_name[1].id = CORBA::string_dup ("nested_up_calls_reactor");
- CORBA::Object_var reactor_obj =
- naming_context->resolve (nested_up_calls_reactor_name,TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->reactor_ =
- Reactor::_narrow (reactor_obj.in (),TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- if (CORBA::is_nil (this->reactor_.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " could not resolve nested up calls reactor in Naming service <%s>\n"),
- -1);
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("NestedUpCalls::init_naming_service");
- return -1;
- }
- TAO_ENDTRY;
-
- return 0;
-}
-
-int
-NestedUpCalls_Client::init (int argc, char **argv)
-{
- int naming_result;
- this->argc_ = argc;
- this->argv_ = argv;
-
- TAO_TRY
- {
- // Retrieve the ORB.
- this->orb_ = CORBA::ORB_init (this->argc_,
- this->argv_,
- "internet",
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Parse command line and verify parameters.
- if (this->parse_args () == -1)
- return -1;
-
- if (this->use_naming_service_)
- {
- naming_result = this->init_naming_service ();
- if (naming_result < 0)
- return naming_result;
- }
- else
- {
- if (this->nested_up_calls_reactor_key_ == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s: no nested up calls reactor key specified\n",
- this->argv_[0]),
- -1);
-
-
- CORBA::Object_var reactor_object =
- this->orb_->string_to_object (this->nested_up_calls_reactor_key_,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->reactor_ =
- Reactor::_narrow (reactor_object.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- if (CORBA::is_nil (this->reactor_.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- "invalid reactor key <%s>\n",
- this->nested_up_calls_reactor_key_),
- -1);
- }
-
- ACE_DEBUG ((LM_DEBUG, "Reactor received OK\n"));
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("NestedUpCalls::init");
- return -1;
- }
- TAO_ENDTRY;
-
- return 0;
-}
-
-// This function runs the test.
-int
-main (int argc, char **argv)
-{
- NestedUpCalls_Client nestedupcalls_client;
-
- ACE_DEBUG ((LM_DEBUG,
- "\n \t NestedUpCalls: client \n\n"));
-
- if (nestedupcalls_client.init (argc, argv) == -1)
- return 1;
- else
- return nestedupcalls_client.run ();
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class auto_ptr<EventHandler_i>;
-template class ACE_Auto_Basic_Ptr<EventHandler_i>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate auto_ptr<EventHandler_i>
-#pragma instantiate ACE_Auto_Basic_Ptr<EventHandler_i>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tests/NestedUpcall/client.dsp b/TAO/tests/NestedUpcall/client.dsp
deleted file mode 100644
index ed2c4e1fc11..00000000000
--- a/TAO/tests/NestedUpcall/client.dsp
+++ /dev/null
@@ -1,138 +0,0 @@
-# Microsoft Developer Studio Project File - Name="client" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 5.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=client - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "client.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "client.mak" CFG="client - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "client - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "client - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\.." /I "..\.." /I "..\..\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib TAO.lib orbsvcs.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs"
-
-!ELSEIF "$(CFG)" == "client - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\.." /I "..\.." /I "..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib TAO.lib orbsvcs.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs"
-
-!ENDIF
-
-# Begin Target
-
-# Name "client - Win32 Release"
-# Name "client - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\client.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\eh_i.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Reactor.idl
-
-!IF "$(CFG)" == "client - Win32 Release"
-
-!ELSEIF "$(CFG)" == "client - Win32 Debug"
-
-# Begin Custom Build
-InputPath=.\Reactor.idl
-InputName=Reactor
-
-BuildCmds= \
- tao_idl $(InputName).idl
-
-"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\ReactorC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ReactorS.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/TAO/tests/NestedUpcall/client.h b/TAO/tests/NestedUpcall/client.h
deleted file mode 100644
index 706a4d9105a..00000000000
--- a/TAO/tests/NestedUpcall/client.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/NestedUpCalls
-//
-// = FILENAME
-// client.h
-//
-// = DESCRIPTION
-//
-//
-// = AUTHORS
-// Aniruddha Gokhale, Sumedh Mungee, and Sergio Flores-Gaitan
-//
-// ============================================================================
-
-#include "ace/Get_Opt.h"
-#include "tao/corba.h"
-#include "reactor_i.h"
-#include "ace/Auto_Ptr.h"
-
-class NestedUpCalls_Client
-{
- // = TITLE
- // Defines a class that encapsulates behaviour of the NestedUpCalls client
- // example. Provides a better understanding of the logic in an
- // object oriented way.
- //
- // = DESCRIPTION
- // This class declares an interface to run the example client for
- // NestedUpCalls CORBA server. All the complexity for initializing the
- // server is hidden in the class. Just the run() interface is needed.
-public:
- // = Constructor and destructor.
- NestedUpCalls_Client (void);
- ~NestedUpCalls_Client (void);
-
- int run (void);
- // Execute client example code.
-
- int init (int argc, char **argv);
- // Initialize the client communication endpoint with server.
-
-private:
- int init_naming_service (void);
- // Function to initialize the naming service.
-
- int func (u_int i);
- // Simple function that returns the substraction of 117 from the
- // parameter.
-
- int read_ior (char *filename);
- // Function to read the NestedUpCalls reactor ior from a file.
-
- int parse_args (void);
- // Parses the arguments passed on the command line.
-
- int argc_;
- // # of arguments on the command line.
-
- char **argv_;
- // arguments from command line.
-
- char *nested_up_calls_reactor_key_;
- // Key of reactor obj ref.
-
- int shutdown_;
- // Flag to tell server to shutdown.
-
- Reactor_var reactor_;
- // reactor pointer for NestedUpCalls.
-
- CORBA::Environment env_;
- // Environment variable.
-
- CORBA::ORB_var orb_;
- // Remember our orb.
-
- u_int call_count_;
- // # of calls made to functions.
-
- FILE *nested_up_calls_reactor_ior_file_;
- // File from which to obtain the IOR.
-
- ACE_HANDLE f_handle_;
- // File handle to read the IOR.
-
- int use_naming_service_;
- // Flag to tell client not to use Namingservice to find the NestedUpCalls
- // reactor.
-};
diff --git a/TAO/tests/NestedUpcall/eh_i.cpp b/TAO/tests/NestedUpcall/eh_i.cpp
deleted file mode 100644
index a6961ea984e..00000000000
--- a/TAO/tests/NestedUpcall/eh_i.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-// $Id$
-
-#include "tao/corba.h"
-#include "eh_i.h"
-
-// CTOR
-EventHandler_i::EventHandler_i (void)
-{
-}
-
-// DTOR
-EventHandler_i::~EventHandler_i (void)
-{
-}
-
-// Return a long
-CORBA::Long
-EventHandler_i::peer (CORBA::Environment &env)
-{
- // Doesn't matter what value we return!
- CORBA::Long val = 6;
-
- ACE_DEBUG ((LM_DEBUG,
- "EventHandler_i::peer() returning %d\n",
- val));
-
- return val;
-}
-
-CORBA::UShort
-EventHandler_i::decrement (Reactor_ptr eh,
- CORBA::UShort num,
- CORBA::Environment &env)
-{
- ACE_DEBUG ((LM_DEBUG, "%{%I(%P|%t) EventHandler::decrement (%d)%$", num));
-
- CORBA::UShort ret;
- if (--num <= 0)
- ret = 0;
- else
- {
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) EventHandler::decrement() invoking Reactor::decrement(%d)%$", num));
- ret = eh->decrement (_this (env), num, env);
- }
- ACE_DEBUG ((LM_DEBUG, "%}(%P|%t) EventHandler::decrement() returning %d%$", ret));
- return ret;
-}
diff --git a/TAO/tests/NestedUpcall/eh_i.h b/TAO/tests/NestedUpcall/eh_i.h
deleted file mode 100644
index c8443da0bcb..00000000000
--- a/TAO/tests/NestedUpcall/eh_i.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-#if !defined (EVENTHANDLER_I_H)
-# define EVENTHANDLER_I_H
-
-#include "ReactorS.h"
-
-class EventHandler_i : public POA_EventHandler
-{
- // = TITLE
- // Servant implementation for the <EventHandler> IDL interface.
-public:
- EventHandler_i (void);
- // Constructor.
-
- virtual ~EventHandler_i (void);
- // Destructor.
-
- virtual CORBA::Long peer (CORBA::Environment &env);
- // Return some value...doesn't matter what.
-
- virtual CORBA::UShort decrement (Reactor_ptr eh,
- CORBA::UShort num,
- CORBA::Environment &env);
- // deccrement <num> by calling decrement thru <eh> until zero is
- // reached, then return.
-};
-
-#endif /* EVENTHANDLER_I_H */
diff --git a/TAO/tests/NestedUpcall/reactor_i.cpp b/TAO/tests/NestedUpcall/reactor_i.cpp
deleted file mode 100644
index d5b5119c6f0..00000000000
--- a/TAO/tests/NestedUpcall/reactor_i.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-// $Id$
-
-#include "tao/corba.h"
-#include "reactor_i.h"
-
-// CTOR
-Reactor_i::Reactor_i (void)
-{
-}
-
-// DTOR
-Reactor_i::~Reactor_i (void)
-{
-}
-
-// register...with nothing
-CORBA::Long
-Reactor_i::register_handler (EventHandler_ptr eh,
- CORBA::Environment &env)
-{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) BEGIN Reactor_i::register_handler ()\n"));
-
- CORBA::Long r = 0;
-
- TAO_TRY
- {
- r = eh->peer (TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("getting peer");
- }
- TAO_ENDTRY;
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) got this value from peer: %d\n",
- r));
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) END Reactor_i::register_handler ()\n"));
- return 0;
-}
-
-void
-Reactor_i::set_value (CORBA::Environment &env)
-{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) doing Reactor_i::set_value()\n"));
-}
-
-CORBA::UShort
-Reactor_i::decrement (EventHandler_ptr eh,
- CORBA::UShort num,
- CORBA::Environment &env)
-{
- ACE_DEBUG ((LM_DEBUG, "%{%I(%P|%t) Reactor::decrement (%d)%$", num));
-
- CORBA::UShort ret;
- if (--num <= 0)
- ret = 0;
- else
- {
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) Reactor::decrement() invoking EventHandler::decrement(%d)%$", num));
- Reactor_var me = _this (env);
- ret = eh->decrement (me.in (), num, env);
- }
- ACE_DEBUG ((LM_DEBUG, "%}(%P|%t) Reactor::decrement() returning %d\n", ret));
- return ret;
-}
-
-void
-Reactor_i::stop (CORBA::Environment &env)
-{
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) stopping.\n"));
- TAO_ORB_Core_instance ()->orb ()->shutdown ();
-}
diff --git a/TAO/tests/NestedUpcall/reactor_i.h b/TAO/tests/NestedUpcall/reactor_i.h
deleted file mode 100644
index 3d4ede734c9..00000000000
--- a/TAO/tests/NestedUpcall/reactor_i.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-#if !defined (REACTOR_I_H)
-# define REACTOR_I_H
-
-#include "ReactorS.h"
-
-class Reactor_i : public POA_Reactor
-{
- // = TITLE
- // Implement the <Reactor> IDL interface.
-public:
- Reactor_i (void);
- // Constructor.
-
- virtual ~Reactor_i (void);
- // Destructor.
-
- virtual CORBA::Long register_handler(EventHandler_ptr eh,
- CORBA::Environment &env);
- // Register (with nothing...it's an example!)
-
- virtual void set_value (CORBA::Environment &env);
-
- virtual CORBA::UShort decrement (EventHandler_ptr eh,
- CORBA::UShort num,
- CORBA::Environment &env);
- // deccrement <num> by calling decrement thru <eh> until zero is
- // reached, then return.
-
- virtual void stop (CORBA::Environment &env);
- // Stops the reactor.
-};
-
-#endif /* REACTOR_I_H */
diff --git a/TAO/tests/NestedUpcall/server.cpp b/TAO/tests/NestedUpcall/server.cpp
deleted file mode 100644
index ba2e2a181bb..00000000000
--- a/TAO/tests/NestedUpcall/server.cpp
+++ /dev/null
@@ -1,175 +0,0 @@
-// $Id$
-
-#include "server.h"
-
-NestedUpCalls_Server::NestedUpCalls_Server (void)
- : use_naming_service_ (1),
- ior_output_file_ (0)
-{
-}
-
-int
-NestedUpCalls_Server::parse_args (void)
-{
- ACE_Get_Opt get_opts (argc_, argv_, "dn:o:s");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'd': // debug flag.
- TAO_debug_level++;
- break;
- case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.optarg, "w");
- if (this->ior_output_file_ == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to open %s for writing: %p\n",
- get_opts.optarg), -1);
- break;
- case 's': // Don't use the TAO Naming Service.
- this->use_naming_service_=0;
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s"
- " [-d]"
- " [-o] <ior_output_file>"
- " [-s]"
- "\n",
- argv_ [0]),
- 1);
- }
-
- // Indicates successful parsing of command line.
- return 0;
-}
-
-int
-NestedUpCalls_Server::init (int argc,
- char** argv,
- CORBA::Environment& env)
-{
- // Call the init of TAO_ORB_Manager to create a child POA
- // under the root POA.
- this->orb_manager_.init_child_poa (argc,
- argv,
- "child_poa",
- env);
-
- TAO_CHECK_ENV_RETURN (env,-1);
- this->argc_ = argc;
- this->argv_ = argv;
-
- this->parse_args ();
- // ~~ check for the return value here
-
- CORBA::String_var str =
- this->orb_manager_.activate_under_child_poa ("reactor",
- &this->reactor_impl_,
- env);
- ACE_DEBUG ((LM_DEBUG,
- "The IOR is: <%s>\n",
- str.in ()));
-
- if (this->ior_output_file_)
- {
- ACE_OS::fprintf (this->ior_output_file_,
- "%s",
- str.in ());
- ACE_OS::fclose (this->ior_output_file_);
- }
-
- if (this->use_naming_service_)
- return this->init_naming_service (env);
-
- return 0;
-}
-
-// Initialisation of Naming Service and register IDL_Cubit Context and
-// cubit_factory object.
-
-int
-NestedUpCalls_Server::init_naming_service (CORBA::Environment& env)
-{
- int result;
- CORBA::ORB_var orb;
- PortableServer::POA_var child_poa;
-
- orb = this->orb_manager_.orb ();
- child_poa = this->orb_manager_.child_poa ();
-
- result = this->my_name_server_.init (orb.in (),
- child_poa.in ());
- if (result < 0)
- return result;
- reactor_ = this->reactor_impl_._this (env);
- TAO_CHECK_ENV_RETURN (env,-1);
-
- //Register the nested_up_calls_reactor name with the NestedUpCalls Naming
- //Context...
- CosNaming::Name nested_up_calls_context_name (1);
- nested_up_calls_context_name.length (1);
- nested_up_calls_context_name[0].id = CORBA::string_dup ("NestedUpCalls");
- this->naming_context_ =
- this->my_name_server_->bind_new_context (nested_up_calls_context_name,
- env);
- TAO_CHECK_ENV_RETURN (env,-1);
-
- CosNaming::Name reactor_name (1);
- reactor_name.length (1);
- reactor_name[0].id = CORBA::string_dup ("nested_up_calls_reactor");
- this->naming_context_->bind (reactor_name,
- reactor_.in (),
- env);
- TAO_CHECK_ENV_RETURN (env,-1);
- return 0;
-}
-
-int
-NestedUpCalls_Server::run (CORBA::Environment& env)
-{
- if (this->orb_manager_.run (env) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "NestedUpCalls_Server::run"),
- -1);
- return 0;
-}
-
-NestedUpCalls_Server::~NestedUpCalls_Server (void)
-{
-}
-
-int
-main (int argc, char *argv[])
-{
- NestedUpCalls_Server nested_up_calls_server;
-
- ACE_DEBUG ((LM_DEBUG,
- "\n \t NestedUpCalls:SERVER \n \n"));
- TAO_TRY
- {
- if (nested_up_calls_server.init (argc,argv,TAO_TRY_ENV) == -1)
- return 1;
- else
- {
- nested_up_calls_server.run (TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- ACE_UNUSED_ARG (sysex);
- TAO_TRY_ENV.print_exception ("System Exception");
- return -1;
- }
- TAO_CATCH (CORBA::UserException, userex)
- {
- ACE_UNUSED_ARG (userex);
- TAO_TRY_ENV.print_exception ("User Exception");
- return -1;
- }
- TAO_ENDTRY;
- return 0;
-}
diff --git a/TAO/tests/NestedUpcall/server.dsp b/TAO/tests/NestedUpcall/server.dsp
deleted file mode 100644
index ef8ef4717d4..00000000000
--- a/TAO/tests/NestedUpcall/server.dsp
+++ /dev/null
@@ -1,137 +0,0 @@
-# Microsoft Developer Studio Project File - Name="server" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 5.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=server - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "server.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "server.mak" CFG="server - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "server - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "server - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\.." /I "..\.." /I "..\..\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 TAO.lib ace.lib orbsvcs.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs"
-
-!ELSEIF "$(CFG)" == "server - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\.." /I "..\.." /I "..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 TAO.lib aced.lib orbsvcs.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs"
-
-!ENDIF
-
-# Begin Target
-
-# Name "server - Win32 Release"
-# Name "server - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\Reactor.idl
-
-!IF "$(CFG)" == "server - Win32 Release"
-
-!ELSEIF "$(CFG)" == "server - Win32 Debug"
-
-# Begin Custom Build
-InputPath=.\Reactor.idl
-InputName=Reactor
-
-BuildCmds= \
- tao_idl $(InputName).idl
-
-"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\reactor_i.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ReactorC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ReactorS.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\server.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/TAO/tests/NestedUpcall/server.h b/TAO/tests/NestedUpcall/server.h
deleted file mode 100644
index cb02f84b701..00000000000
--- a/TAO/tests/NestedUpcall/server.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/NestedUpCalls
-//
-// = FILENAME
-// server.h
-//
-// = DESCRIPTION
-// This class implements a simple NestedUpCalls CORBA server for the NestedUpCalls
-// example using skeletons generated by the TAO ORB compiler.
-//
-// = AUTHORS
-// Nagarajan Surendran (naga@cs.wustl.edu)
-//
-// ============================================================================
-
-#if !defined (_NUC_SERVER_H)
-#define _NUC_SERVER_H
-
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-#include "tao/TAO.h"
-#include "orbsvcs/CosNamingC.h"
-#include "reactor_i.h"
-#include "orbsvcs/Naming/Naming_Utils.h"
-
-class NestedUpCalls_Server
-{
- // = TITLE
- // Defines a NestedUpCalls Server class that implements the functionality
- // of a server process as an object.
- //
- // = DESCRIPTION
- // The interface is quite simple. A server program has to call
- // init to initialize the NestedUpCalls_Server's state and then call run
- // to run the orb.
-public:
-
- NestedUpCalls_Server (void);
- // Default constructor
-
- ~NestedUpCalls_Server (void);
- // Destructor
-
- int init (int argc,
- char **argv,
- CORBA::Environment& env);
- // Initialize the NestedUpCalls_Server state - parsing arguments and ...
-
- int run (CORBA::Environment& env);
- // Run the orb
-
-private:
- int parse_args (void);
- // Parses the commandline arguments.
-
- int init_naming_service (CORBA::Environment &env);
- // Initialises the name server and registers NestedUpCalls reactor with the
- // name server.
-
- int use_naming_service_;
- //Flag to tell server not to use the TAO Naming Service to register
- //the NestedUpCalls reactor.
-
- FILE* ior_output_file_;
- // File to output the NestedUpCalls reactor IOR.
-
- TAO_ORB_Manager orb_manager_;
- // The ORB manager
-
- TAO_Naming_Server my_name_server_;
- // An instance of the name server used for registering the reactor
- // objects.
-
- Reactor_i reactor_impl_;
- // Implementation object of the NestedUpCalls reactor.
-
- Reactor_var reactor_;
- // Reactor_var to register with NamingService.
-
- CosNaming::NamingContext_var NestedUpCalls_context_;
- // Naming context for the NestedUpCalls_reactor.
-
- CosNaming::NamingContext_var naming_context_;
- // Naming context for the Naming Service.
-
- int argc_;
- // Number of commandline arguments.
-
- char **argv_;
- // commandline arguments.
-};
-
-#endif /* _NUC_SERVER_H */
diff --git a/TAO/tests/NestedUpcall/svc.conf b/TAO/tests/NestedUpcall/svc.conf
deleted file mode 100644
index 43c6a486c92..00000000000
--- a/TAO/tests/NestedUpcall/svc.conf
+++ /dev/null
@@ -1,49 +0,0 @@
-# $Id$
-#
-# This file contains a sample ACE_Service_Config configuration
-# file specifying the strategy factories utilized by an application
-# using TAO. There are currently only two possible factories:
-# Client_Strategy_Factory and Server_Strategy_Factory. These names
-# must be used as the second argument to their corresponding line,
-# because that's what the ORB uses to find the desired factory.
-#
-# Note that there are two unordinary characteristics of the way *this*
-# file is set up:
-# - both client and server strategies are specified in the same
-# file, which would only make sense for co-located clients & servers
-# - both of the factories are actually sourced out of libTAO.so
-# (TAO.DLL on Win32), and they would normally be in a separate
-# dll from the TAO ORB Core.
-#
-# The options which can be passed to the Resource Factory are:
-#
-# -ORBresources <which>
-# where <which> can be 'global' to specify globally-held resources,
-# or 'tss' to specify thread-specific resources.
-#
-# The options which can be passed to the Client are:
-# <none currently>
-#
-# The options which can be passed to the Server are:
-#
-# -ORBconcurrency <which>
-# where <which> can be 'thread-per-connection' to specify
-# use of the ACE_Threaded_Strategy concurrency strategy,
-# or 'reactive' to specify use of the ACE_Reactive_Strategy
-# concurrency strategy.
-#
-# -ORBthreadflags <flags>
-# specifies the default thread flags to use, where <flags> is a
-# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP,
-# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid
-# on every platform.
-#
-# -ORBdemuxstrategy <which>
-# where <which> can be one of 'dynamic', 'linear', 'active', or 'user',
-# and specifies the type of object lookup strategy used internally.
-# -ORBtablesize <unsigned>
-# specifies the size of the object table
-#
-dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global"
-dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory()
-dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128"