Salome HOME
bos #26457 Factorization of ORB initialization
[modules/kernel.git] / src / LifeCycleCORBA / Test_LifeCycleCORBA.cxx
index cb7554882261cbe67bcc4069f8ef0b8f2c854f50..d354a36f374dd7071823882a603010e95841ce40 100644 (file)
 #include <SALOMEconfig.h>
 #include CORBA_CLIENT_HEADER(SALOME_Component)
 #include CORBA_CLIENT_HEADER(SALOME_TestComponent)
+#include "ArgvKeeper.hxx"
 #include "SALOME_NamingService.hxx"
 #include "SALOME_LifeCycleCORBA.hxx"
 #include "SALOME_FileTransferCORBA.hxx"
+#include "OpUtil.hxx"
 #include "utilities.h"
 #include <Basics_Utils.hxx>
 
@@ -45,8 +47,8 @@ int main (int argc, char * argv[])
   try
     {
       // --- Initialize omniORB
-
-      CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
+      SetArgcArgv(argc, argv);
+      CORBA::ORB_var orb = KERNEL::GetRefToORB();
     
       // --- Obtain a reference to the root POA