-// Copyright (C) 2015-2021 CEA/DEN, EDF R&D
+// Copyright (C) 2015-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
return aStudy;
}
+#include "MED_No_Session.hxx"
+
extern "C"
{
/*!
const char* instanceName,
const char* interfaceName)
{
- MED* component = new MED_Session(orb, poa, contId, instanceName, interfaceName);
- return component->getId();
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ MED_No_Session* component = new MED_No_Session(orb, poa, contId, instanceName, interfaceName);
+ return component->getId();
+ }
+ else
+ {
+ MED* component = new MED_Session(orb, poa, contId, instanceName, interfaceName);
+ return component->getId();
+ }
}
}