Appendix B. Scenario 2: Source code listings 353
// Destructor for class Greet_Impl.
Greet_Impl::~Greet_Impl() { }
Revised application server
Description: CORBA C++ server code
File name: server_CORBA.cpp
#ifndef lint
static const char *sccsid = "@(#) 1.0 GreetServer.cpp, 11/5/03 ";
#endif
#include <locale.h>
#include <CosNaming.hh>
#include <greet.ih>
#include <WSServerShutdown.h>
#if defined(minor)
#undef minor
#endif
// Global declarations:
static ::CORBA::ORB_ptr op;
static ::CORBA::BOA_ptr bp;
::CORBA::ImplementationDef_ptr imp ;
Greet_var greet_Impl;
// This function deallocates resources used throughout the program.
void release_resources( ::CORBA::BOA_ptr bp, ::CORBA::ImplementationDef_ptr
imp, ::CORBA::ORB_ptr op ) {
// Deallocate the various resour ...