summaryrefslogtreecommitdiff
path: root/TAO/tao/ORB.cpp
diff options
context:
space:
mode:
authorjai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-01-24 00:49:56 +0000
committerjai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-01-24 00:49:56 +0000
commit5881c4b30aa5570d8f67ef0f7f02c71548928170 (patch)
treec444e909c531f8179620ebbf71504c99bc2c4678 /TAO/tao/ORB.cpp
parentcd277a0666347c60cb7a3a00d9bf043fd6f615cf (diff)
downloadATCD-5881c4b30aa5570d8f67ef0f7f02c71548928170.tar.gz
Wed Jan 23 16:40:21 2002 Jaiganesh Balasubramanian <jai@kelvar.ece.uci.edu>
Diffstat (limited to 'TAO/tao/ORB.cpp')
-rw-r--r--TAO/tao/ORB.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index f0d8de2b0ac..fcf04633cc5 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -1034,7 +1034,17 @@ CORBA_ORB::resolve_service (TAO_MCAST_SERVICEID mcast_service_id
ACE_OS::strcat (def_init_ref, port_ptr.in ());
ACE_OS::strcat (def_init_ref, "::");
- this->orb_core_->orb_params ()->default_init_ref (def_init_ref.in ());
+ CORBA::String_var default_init_ref =
+ this->orb_core_->orb_params ()->default_init_ref ();
+
+ static const char mcast_prefix[] = "mcast://:::";
+
+ if ((ACE_OS::strncmp (default_init_ref.in (),
+ mcast_prefix,
+ sizeof mcast_prefix -1) == 0))
+ {
+ this->orb_core_->orb_params ()->default_init_ref (def_init_ref.in ());
+ }
return CORBA::Object::_nil ();
}