You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by sh...@apache.org on 2009/10/21 15:04:28 UTC
svn commit: r828001 - in /webservices/sandesha/trunk/c: config/module.xml
src/util/sandesha2_utils.c
Author: shankar
Date: Wed Oct 21 13:04:28 2009
New Revision: 828001
URL: http://svn.apache.org/viewvc?rev=828001&view=rev
Log:
By default, Creating the db in Axis2C_Home. This will enable out of the box running in windows as well as linux.
Modified:
webservices/sandesha/trunk/c/config/module.xml
webservices/sandesha/trunk/c/src/util/sandesha2_utils.c
Modified: webservices/sandesha/trunk/c/config/module.xml
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/config/module.xml?rev=828001&r1=828000&r2=828001&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/config/module.xml (original)
+++ webservices/sandesha/trunk/c/config/module.xml Wed Oct 21 13:04:28 2009
@@ -67,7 +67,7 @@
</operation>
<!-- Database name parameter -->
- <parameter name="sandesha2_db" locked="false">/tmp/sandesha2_db</parameter>
+ <!--parameter name="sandesha2_db" locked="false">/tmp/sandesha2_db</parameter>-->
<!-- General parameters -->
</module>
Modified: webservices/sandesha/trunk/c/src/util/sandesha2_utils.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/sandesha2_utils.c?rev=828001&r1=828000&r2=828001&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/sandesha2_utils.c (original)
+++ webservices/sandesha/trunk/c/src/util/sandesha2_utils.c Wed Oct 21 13:04:28 2009
@@ -1361,7 +1361,7 @@
axis2_conf_t *conf = NULL;
axis2_module_desc_t *module_desc = NULL;
axutil_qname_t *qname = NULL;
- axis2_char_t *dbname = "./sandesha2_db";
+ axis2_char_t *dbname = NULL;
if(conf_ctx)
conf = axis2_conf_ctx_get_conf((const axis2_conf_ctx_t *) conf_ctx, env);
else
@@ -1379,6 +1379,20 @@
dbname = axutil_param_get_value(dbparam, env);
}
}
+
+ if(!dbname)
+ {
+ axis2_char_t *home = NULL;
+ home = AXIS2_GETENV("AXIS2C_HOME");
+ if(home)
+ {
+ dbname = axutil_stracat(env, home, "/sandesha2_db");
+ }
+ else
+ {
+ dbname = "./sandesha2_db";
+ }
+ }
if(qname)
axutil_qname_free(qname, env);
/*AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "dbname:%s", dbname);*/
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org