-// Copyright (C) 2011-2016 EDF R&D
+// Copyright (C) 2011-2024 EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
return false;
}
+//Engines::EngineComponent_var RetrievePadderMeshJobManagerInstance()
+//{
+//}
+
//
// ====================================================================
// Constructor/Destructor
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName)
- : Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
+ const char *interfaceName,
+ bool checkNS, bool regist)
+ : Engines_Component_i(orb, poa, contId, instanceName, interfaceName, checkNS, regist)
{
LOG("Activating MESHJOB::MeshJobManager object");
_thisObj = this ;
LOG("resource["<<i<<"] = "<<aResourceName);
resourceDefinition = _resourcesManager->GetResourceDefinition(aResourceName);
LOG("protocol["<<i<<"] = "<<resourceDefinition->protocol);
+ (void)resourceDefinition; // unused in release mode
}
}
const char *interfaceName)
{
LOG("PortableServer::ObjectId * MeshJobManagerEngine_factory()");
- MeshJobManager_i * myEngine = new MeshJobManager_i(orb, poa, contId, instanceName, interfaceName);
+ MeshJobManager_i * myEngine = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ myEngine = new MeshJobManager_i(orb, poa, contId, instanceName, interfaceName, false, false);
+ else
+ myEngine = new MeshJobManager_i(orb, poa, contId, instanceName, interfaceName, true, true);
return myEngine->getId() ;
}
}