summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorrisc <morrisc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-08 18:26:37 +0000
committermorrisc <morrisc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-08 18:26:37 +0000
commit8c07ba28e1079094c02f0a08aa9ecca8bd4a777b (patch)
tree826ee0023db4454c098ba640f0b97a966e0823bd
parent79369aaf4c6945bfdc4bc5ce39e7820cb9938093 (diff)
downloadATCD-8c07ba28e1079094c02f0a08aa9ecca8bd4a777b.tar.gz
tao_imr enhancements for JacORB
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp2
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp10
2 files changed, 9 insertions, 3 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp
index c456bb64634..6fa857bfdd8 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp
@@ -863,7 +863,7 @@ ImR_Locator_i::parse_id(const char* id, ACE_CString& server_id, ACE_CString& nam
server_id = idstr.substr (0, pos - id);
name = idstr.substr (pos - id + 1);
if (server_id == "JACORB")
- {
+ {
jacorb_server = true;
ssize_t idx = name.find("/");
server_id = name.substr(0, idx);
diff --git a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
index bc5a9a53d67..5a70ab4f818 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
@@ -39,8 +39,14 @@ Server_Info::createImRServerInfo (void) const
ImplementationRepository::ServerInformation* info;
ACE_NEW_THROW_EX (info, ImplementationRepository::ServerInformation, CORBA::NO_MEMORY ());
- ACE_CString jacorb_name ("JACORB:" + name);
- info->server = jacorb_server ? jacorb_name.c_str () : name.c_str (); info->startup.command_line = cmdline.c_str ();
+ info->startup.command_line = cmdline.c_str ();
+ if (jacorb_server)
+ {
+ ACE_CString jacorb_name ("JACORB:" + name);
+ info->server = jacorb_name.c_str();
+ }
+ else
+ info->server = name.c_str();
info->startup.command_line = cmdline.c_str ();
info->startup.environment = env_vars;
info->startup.working_directory = dir.c_str ();