From 5e030faf84086ab02059fcbcc3faed224bd57b95 Mon Sep 17 00:00:00 2001 From: stanleyk Date: Tue, 5 Feb 2013 21:11:03 +0000 Subject: Merge in OCI_Reliability_Enhancements branch. --- TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp') diff --git a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp index 674a60b437a..2837ef12135 100644 --- a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp @@ -817,9 +817,18 @@ TAO_IMR_Op_IOR::run (void) ACE_CString ior (imr_str.in ()); // Add the key - ior += this->server_name_; + const char jacorb[] = ACE_TEXT_ALWAYS_CHAR ("JACORB:"); + const char *posjacorb = ACE_OS::strstr (server_name_.c_str (), jacorb); + if (posjacorb) + { + ior += posjacorb + sizeof(jacorb) - 1; + } + else + { + ior += this->server_name_; + } - ACE_DEBUG ((LM_DEBUG, "%s\n", ior.c_str ())); + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%s\n"), ior.c_str ())); if (this->filename_.length () > 0) { @@ -828,7 +837,7 @@ TAO_IMR_Op_IOR::run (void) if (file == 0) { ACE_ERROR_RETURN ((LM_ERROR, - "Error: Unable to open %s for writing: %p\n", + ACE_TEXT ("Error: Unable to open %s for writing: %p\n"), this->filename_.c_str ()), -1); } -- cgit v1.2.1