You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2008/12/05 07:22:10 UTC
svn commit: r723606 - /webservices/axis/trunk/c/src/engine/Axis.cpp
Author: nadiramra
Date: Thu Dec 4 22:22:09 2008
New Revision: 723606
URL: http://svn.apache.org/viewvc?rev=723606&view=rev
Log:
AXISCPP-100 enable axis c++ (engine) tracing - read config file early.
Modified:
webservices/axis/trunk/c/src/engine/Axis.cpp
Modified: webservices/axis/trunk/c/src/engine/Axis.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/engine/Axis.cpp?rev=723606&r1=723605&r2=723606&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/engine/Axis.cpp (original)
+++ webservices/axis/trunk/c/src/engine/Axis.cpp Thu Dec 4 22:22:09 2008
@@ -99,11 +99,6 @@
g_pHandlerPool = new HandlerPool ();
// unsynchronized read-only global variables.
g_pWSDDDeployment = new WSDDDeployment ();
-
- if( g_pConfig != NULL)
- g_pConfig = new AxisConfig( g_pConfig);
- else
- g_pConfig = new AxisConfig();
}
void ModuleUnInitialize ()
@@ -343,17 +338,13 @@
{
if (g_uModuleInitialize == 0)
{
- // order of these initialization method invocation should not be changed
- AxisEngine::m_bServer = bServer;
- AxisUtils::initialize ();
- WSDDKeywords::initialize ();
- SoapKeywordMapping::initialize ();
- TypeMapping::initialize ();
- URIMapping::initialize ();
- SoapFault::initialize ();
- ModuleInitialize ();
-
+ // Read config file and enable trace....this should be first thing that is done!!!
// Read from the configuration file
+ if( g_pConfig != NULL)
+ g_pConfig = new AxisConfig( g_pConfig);
+ else
+ g_pConfig = new AxisConfig();
+
status = g_pConfig->readConfFile ();
if (status == AXIS_SUCCESS)
{
@@ -376,6 +367,16 @@
// The entry log must start here - may revisit so as to start earlier.
logEntryEngine("initialize_module")
+ // order of these initialization method invocation should not be changed
+ AxisEngine::m_bServer = bServer;
+ AxisUtils::initialize ();
+ WSDDKeywords::initialize ();
+ SoapKeywordMapping::initialize ();
+ TypeMapping::initialize ();
+ URIMapping::initialize ();
+ SoapFault::initialize ();
+ ModuleInitialize ();
+
if (bServer) // no client side wsdd processing at the moment
{
if (status == AXIS_SUCCESS)
@@ -428,9 +429,10 @@
/* Ok if we can't read config file */
status = AXIS_SUCCESS;
}
+
g_isRunning = true;
- logExitWithReturnCode(status)
+ logExitWithReturnCode(status)
}
else if (AxisEngine::m_bServer != bServer)
{