namingService.Register(aStudy, "/Study");
// Assign the value of the IOR in the study->root
- CORBA::String_var IORStudy = orb->object_to_string(aStudy);
- aStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in());
+ if ( aStudy_i->GetImpl()->GetTransientReference().empty() ) {
+ CORBA::String_var IORStudy = orb->object_to_string(aStudy);
+ aStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in());
+ }
aStudy_i->_remove_ref();
}
}
NS = SINGLETON_<SALOME_NamingService>::Instance();
NS->init_orb( orb );
}
- NS->Register(Study.in(), "/Study");
+ NS->Register(Study, "/Study");
// Assign the value of the IOR in the study->root
- CORBA::String_var IORStudy = orb->object_to_string(Study);
- myStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in());
+ if ( myStudy_i->GetImpl()->GetTransientReference().empty() ) {
+ CORBA::String_var IORStudy = orb->object_to_string(Study);
+ myStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in());
+ }
myStudy_i->_remove_ref();
std::string component_name;
// Store previous URL
- std::string anOldName = Name();
+ std::string anOldName = URL();
// Map to store components' versions
std::map<std::string, std::string> componentVersions;