Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_2285_Regression / Hello.cpp
blob949168c1d7160abe92b2c42e48113fd7964b7baa
1 #include "Hello.h"
3 CORBA::Boolean
4 Hello::ids_differ_ = true;
6 Hello::Hello (CORBA::ORB_ptr orb, Test::Hello_ptr server, CORBA::ULong server_id)
7 : orb_ (CORBA::ORB::_duplicate (orb)),
8 server_ (Test::Hello::_duplicate (server)),
9 server_id_ (server_id)
13 char *
14 Hello::get_string (void)
16 return CORBA::string_dup ("Hello there!");
19 void
20 Hello::shutdown (void)
22 this->orb_->shutdown (0);
25 void
26 Hello::throw_exception (void)
28 throw Test::MyException ();
31 // Nested sequence step 1 - This op called by the client on the server
32 CORBA::Boolean
33 Hello::call_me_back (Test::Hello_ptr me)
35 CORBA::Boolean result = me->call_back ();
36 return result;
39 // Nested sequence step 2 - This op called by the server on the client
40 CORBA::Boolean
41 Hello::call_back (void)
43 CORBA::Boolean result = server_->check_request_id ();
44 return result;
47 // Nested sequence step 3 - This op called by the client on the server
48 CORBA::Boolean
49 Hello::check_request_id (void)
51 // The server request interceptor will have set this public static member
52 // false if the same retention id has been used twice
53 return ids_differ_;
56 CORBA::ULong
57 Hello::drop_down_dead (void)
59 return server_id_;