From 4b1079ef8d5a01fd3363616df3d929da2712d6b0 Mon Sep 17 00:00:00 2001 From: Bernard Secher Date: Thu, 22 Nov 2018 14:35:13 +0100 Subject: [PATCH] connection to a corba naming service on a server --- src/Session/SALOME_Session_Server.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index a8e0b7e8b..c82ccc3c6 100644 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -460,6 +460,8 @@ int main( int argc, char **argv ) ORB_INIT &init = *SINGLETON_::Instance(); ASSERT( SINGLETON_::IsAlreadyExisting() ); int orbArgc = 1; + if( std::string(argv[1]).find("-ORBInitRef") != std::string::npos ) + orbArgc = 3; orb = init( orbArgc, argv ); CORBA::Object_var obj = orb->resolve_initial_references( "RootPOA" ); -- 2.39.2