diff options
author | bala <balanatarajan@users.noreply.github.com> | 2000-08-22 15:42:22 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2000-08-22 15:42:22 +0000 |
commit | b4ddd240371eb5f7e2a53cfefeb9c4a461171865 (patch) | |
tree | 05081c9d2cb4f158da89f7ee4709868d7009a0cc /TAO/examples/Advanced | |
parent | e98d6a4fa00a4dfdbcf329dcc45d2d801375d2f1 (diff) | |
download | ATCD-b4ddd240371eb5f7e2a53cfefeb9c4a461171865.tar.gz |
ChangeLogTag: Tue Aug 22 10:01:49 2000 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/examples/Advanced')
-rw-r--r-- | TAO/examples/Advanced/ch_3/client.cpp | 10 | ||||
-rw-r--r-- | TAO/examples/Advanced/ch_8_and_10/client.cpp | 4 | ||||
-rw-r--r-- | TAO/examples/Advanced/ch_8_and_10/server.cpp | 6 |
3 files changed, 14 insertions, 6 deletions
diff --git a/TAO/examples/Advanced/ch_3/client.cpp b/TAO/examples/Advanced/ch_3/client.cpp index eb1456682e5..c106f7f8110 100644 --- a/TAO/examples/Advanced/ch_3/client.cpp +++ b/TAO/examples/Advanced/ch_3/client.cpp @@ -58,6 +58,12 @@ main (int argc, char *argv[]) throw 0; } + { + cout << "Validating connection"<<endl; + CORBA::PolicyList_var pols; + tm->_validate_connection (pols.out ()); + cout << "Succesfull " <<endl; + } // Get time TimeOfDay tod = tm->get_gmt (); cout << "Time in Greenwich is " @@ -65,8 +71,10 @@ main (int argc, char *argv[]) << setw (2) << setfill ('0') << tod.minute << ":" << setw (2) << setfill ('0') << tod.second << endl; } - catch (const CORBA::Exception &) + catch (const CORBA::Exception &x) { + ACE_PRINT_EXCEPTION (x, + "Who is the culprit \n"); cerr << "Uncaught CORBA exception" << endl; return 1; } diff --git a/TAO/examples/Advanced/ch_8_and_10/client.cpp b/TAO/examples/Advanced/ch_8_and_10/client.cpp index 79a848ae226..ade90d0fa9a 100644 --- a/TAO/examples/Advanced/ch_8_and_10/client.cpp +++ b/TAO/examples/Advanced/ch_8_and_10/client.cpp @@ -88,7 +88,7 @@ operator<<(ostream & os, const CCS::Controller::EChange & ec) // Generic ostream inserter for exceptions. Inserts the exception // name, if available, and the repository ID otherwise. -// #if 0 // This inserter may or may not be needed for your ORB. + #if 0 // This inserter may or may not be needed for your ORB. static ostream & operator<<(ostream & os, const CORBA::Exception & e) @@ -105,7 +105,7 @@ operator<<(ostream & os, const CORBA::Exception & e) return os; } -// #endif + #endif //---------------------------------------------------------------- diff --git a/TAO/examples/Advanced/ch_8_and_10/server.cpp b/TAO/examples/Advanced/ch_8_and_10/server.cpp index 8e600dc794a..a6f2032b063 100644 --- a/TAO/examples/Advanced/ch_8_and_10/server.cpp +++ b/TAO/examples/Advanced/ch_8_and_10/server.cpp @@ -30,7 +30,7 @@ // Generic ostream inserter for exceptions. Inserts the exception // name, if available, and the repository ID otherwise. -// #if 0 This inserter may or may not be needed for your ORB. +#if 0 //This inserter may or may not be needed for your ORB. static ostream & operator<<(ostream & os, const CORBA::Exception & e) @@ -46,7 +46,7 @@ operator<<(ostream & os, const CORBA::Exception & e) return os; } -// #endif +#endif //---------------------------------------------------------------- @@ -332,7 +332,7 @@ change( // to the errors sequence. CORBA::ULong len = ec.errors.length(); ec.errors.length(len + 1); - ec.errors[len].tmstat_ref = tlist[i]; + ec.errors[len].tmstat_ref = tlist[i].in (); ec.errors[len].info = bt.details; } } |