diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-12-25 05:34:48 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-12-25 05:34:48 +0000 |
commit | 47aca60ee970a8127b93f77de9871dc9657fa340 (patch) | |
tree | 3c43cedddf639a184d21180ebde6d1a23272165c /TAO/tests/Smart_Proxies | |
parent | 828861b4bf42b422ba160c8061acf9827c79d9f7 (diff) | |
download | ATCD-47aca60ee970a8127b93f77de9871dc9657fa340.tar.gz |
smart proxy implementation
Diffstat (limited to 'TAO/tests/Smart_Proxies')
-rw-r--r-- | TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp b/TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp new file mode 100644 index 00000000000..cf60c41b0b2 --- /dev/null +++ b/TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp @@ -0,0 +1,35 @@ +// $Id$ +#include "Smart_Proxy_Impl.h" + +Smart_Test_Proxy::Smart_Test_Proxy (Test_ptr proxy) + : TAO_Test_Smart_Proxy_Base (proxy) +{ +} + +CORBA::Short +Smart_Test_Proxy::method (CORBA::Short boo, + CORBA::Environment &ACE_TRY_ENV) + ACE_THROW_SPEC ((CORBA::SystemException, + Test::Oops)) +{ + ACE_DEBUG ((LM_DEBUG, + "Yahoo, I am smart\n")); + + CORBA::Short retval = 0; + ACE_TRY + { + retval = TAO_Test_Smart_Proxy_Base::method (boo, + ACE_TRY_ENV); + ACE_TRY_CHECK; + } + ACE_CATCH (Test::Oops, reason) + { + ACE_PRINT_EXCEPTION (reason, + "User Exception"); + return -1; + } + ACE_ENDTRY; + + return retval; +} + |