<br> CIAO VERSION: 0.5.8
<br> TAO VERSION : 1.5.8
<br> ACE VERSION : 5.5.8
<br>
<br> HOST MACHINE and OPERATING SYSTEM:
<br> If on Windows based OS's, which version of WINSOCK do you
<br> use?: Pentium IV, Debian linix kernel 2.6
<br>
<br> TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
<br> COMPILER NAME AND VERSION (AND PATCHLEVEL):
<br>
<br> THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
<br> specific file, simply state which one]:#include "ace/config-
<br>linux.h"
<br>
<br> THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
<br> use a link to a platform-specific file, simply state which one
<br> (unless this isn't used in this case, e.g., with Microsoft Visual
<br> C++)]:
<br> no_hidden_visibility=1
<br> include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
<br>
<br> CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
<br>default.features
<br> (used by MPC when you generate your own makefiles): There is no
<br>such file.
<br>
<br> AREA/CLASS/EXAMPLE AFFECTED:
<br>[What example failed? What module failed to compile?]
<br>
<br> DOES THE PROBLEM AFFECT:
<br> COMPILATION? No.
<br> If so, what do your $ACE_ROOT/ace/config.h and
<br> $ACE_ROOT/include/makeinclude/platform_macros.GNU contain?
<br> LINKING?
<br> On Unix systems, did you run make realclean first?
<br> EXECUTION? No.
<br> OTHER (please specify)? Component code.
<br>[Please indicate whether ACE/TAO/CIAO, your application, or both are
<br>affected.]
<br>
<br> SYNOPSIS: How to get the component context from a facet method
<br>[Brief description of the problem]
<br>
<br> DESCRIPTION:
<br>[Detailed description of problem. Don't just say "<blah>
<br>doesn't work, here's a fix," explain what your program does
<br>to get to the <blah> state. ]
<br>
<br>Hi,
<br>
<br>I need to obtain the context of the component from a facet method of the component itself. I’m doing the following inside the facet method:
<br>
<br>::CORBA::Object_var obj = this->_get_component();
<br>
<br>After this, how do I cast the Object_var to the component executor in order I can get the context to use it like this:
<br>
<br>client_facet = component->_context->get_connection_client();
<br>
<br>Thank you.
<br>
<br>Santos
<br>
<br>
<br> REPEAT BY:
<br>[What you did to get the error; include test program or session
<br>transcript if at all possible. ]
<br>
<br>
<br> SAMPLE FIX/WORKAROUND:
<br>[If available ]
<br><br/>
<div>
<hr style="width:85%;margin-left:0px;text-align:left"/><br/>
<b>Want to change your life? Find the perfect job with Lycos Jobs.</b><br/>
Career Advice. Job Resources & Recommendations.<br/>
<a href="http://www.careerbuilder.com/?lr=cblycos&siteid=lycoshp7"
target="_blank"><u>Post your resume & find a job match!</u></a>
</div>