Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / DevGuideExamples / Multithreading / ThreadPerConnection / Messenger_i.cpp
blobb43707e72104b7c84328c805b313ea6508fcdf09
1 /* -*- C++ -*- */
3 // ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
4 // TAO and the TAO IDL Compiler have been developed by the Center for
5 // Distributed Object Computing at Washington University, St. Louis.
6 //
7 // Information about TAO is available at:
8 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
10 #include "Messenger_i.h"
11 #include "ace/Thread.h"
12 #include <iostream>
14 #include <sstream>
16 // Implementation skeleton constructor
17 Messenger_i::Messenger_i (void)
21 // Implementation skeleton destructor
22 Messenger_i::~Messenger_i (void)
26 CORBA::Boolean Messenger_i::send_message (
27 const char* /*user_name*/,
28 const char* /*subject*/,
29 char *& message
32 CORBA::string_free(message);
34 std::ostringstream ostr;
35 ostr << "Message handled on thread " << ACE_Thread::self();
36 message = CORBA::string_dup(ostr.str().c_str());
37 return true;