summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IIOP_Connector.cpp')
-rw-r--r--TAO/tao/IIOP_Connector.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp
index 2b27d021a49..121b6aba25f 100644
--- a/TAO/tao/IIOP_Connector.cpp
+++ b/TAO/tao/IIOP_Connector.cpp
@@ -184,7 +184,8 @@ TAO_IIOP_Connector::connect (TAO_Base_Connection_Property *prop,
TAO_Connection_Handler *conn_handler = 0;
// Check the Cache first for connections
- if (this->find_handler (prop, conn_handler) == 0)
+ if (this->orb_core ()->connection_cache ().find_handler (prop,
+ conn_handler) == 0)
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
@@ -244,14 +245,16 @@ TAO_IIOP_Connector::connect (TAO_Base_Connection_Property *prop,
__LINE__,
iiop_endpoint->host (),
iiop_endpoint->port (),
- "errno"));
+ "errno"));
}
return -1;
}
// Add the handler to Cache
- int retval = this->add_handler (prop,
- svc_handler);
+ int retval =
+ this->orb_core ()->connection_cache ().cache_handler (prop,
+ svc_handler);
+
if (retval != 0 && TAO_debug_level > 0)
{