diff options
| author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-02-22 10:09:24 +0000 |
|---|---|---|
| committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-02-22 10:09:24 +0000 |
| commit | 3cc357789f4d46c6cc3f78610c9ba4fe36aa4e0d (patch) | |
| tree | 7ef3ccaa88be55250076d461f3e7435a6b8b9b2a /TAO/tao/Collocated_Invocation.cpp | |
| parent | a83f2d9caf6a2ef09e08b203762e3e7785d9e86f (diff) | |
| download | ATCD-3cc357789f4d46c6cc3f78610c9ba4fe36aa4e0d.tar.gz | |
ChangeLogTag:Tue Feb 22 02:03:20 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Collocated_Invocation.cpp')
| -rw-r--r-- | TAO/tao/Collocated_Invocation.cpp | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/TAO/tao/Collocated_Invocation.cpp b/TAO/tao/Collocated_Invocation.cpp index 584414397cc..6c3f17b6f1b 100644 --- a/TAO/tao/Collocated_Invocation.cpp +++ b/TAO/tao/Collocated_Invocation.cpp @@ -1,11 +1,16 @@ #include "Collocated_Invocation.h" #include "Collocation_Proxy_Broker.h" +#include "ORB_Core.h" +#include "Request_Dispatcher.h" +#include "TAO_Server_Request.h" #include "operation_details.h" + ACE_RCSID (tao, Collocated_Invocation, "$Id$") + namespace TAO { Collocated_Invocation::Collocated_Invocation (CORBA::Object_ptr t, @@ -41,15 +46,35 @@ namespace TAO ACE_TRY { - cpb->dispatch (this->effective_target (), - this->forwarded_to_.out (), - this->details_.args (), - this->details_.args_num (), - this->details_.opname (), - this->details_.opname_len (), - strat - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + if (strat == TAO_CS_THRU_POA_STRATEGY) + { + TAO_ORB_Core * const orb_core = this->orb_core (); + + TAO_ServerRequest request (orb_core, + this->details_, + this->effective_target ()); + + TAO_Request_Dispatcher * const dispatcher = + orb_core->request_dispatcher (); + + dispatcher->dispatch (orb_core, + request, + this->forwarded_to_.out () + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } + else + { + cpb->dispatch (this->effective_target (), + this->forwarded_to_.out (), + this->details_.args (), + this->details_.args_num (), + this->details_.opname (), + this->details_.opname_len (), + strat + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } // Invocation completed succesfully s = TAO_INVOKE_SUCCESS; |
