New feature to allow to register components with different names for same class:...
[anna.git] / example / diameter / launcher / MyLocalServer.cpp
index 7db0d87..9346c5d 100644 (file)
@@ -90,7 +90,7 @@ throw(anna::RuntimeException) {
     } else return; // nothing done
   }
 
-  anna::diameter::codec::Engine *codecEngine = (anna::functions::component <anna::diameter::codec::Engine> (ANNA_FILE_LOCATION));
+  anna::diameter::codec::Engine *codecEngine = my_app.getCodecEngine();
   anna::diameter::codec::Engine::ValidationMode::_v backupVM = codecEngine->getValidationMode();
 
   if(!analysisOK)