Re: Re: [jdev] sm.xml configure

Zhangmingjie mjxlzhang at
Wed Jun 27 21:51:15 CDT 2007

thanks Tomasz ,I will try hardcoded to "storage.mysql.*" to test it .


发件人: Tomasz Sterna
发送时间: 2007-06-26 20:32:28
收件人: Jabber software development list
主题: Re: [jdev] sm.xml configure

Dnia 26-06-2007, wto o godzinie 13:12 +0200, Norman Rasmussen
>  - in storage.c : copy mysql as mysql1 in: init extern's,
> driver_array, driver_inits
>  - in storage_mysql.c : copy mysql_init as mysql1_init, and change
> storage.mysql to storage.mysql1. 

Since 2.1.5 storage modules are loaded dynamically, so there is no
static module mapping table anymore.
All modules have st_init() function not specific to a module kind.
So copying as and configuring
<mysql2/ > would be enough, but the problem is in the storage_mysql.c

$ grep storage.mysql storage/storage_mysql.c
host = config_get_one(drv- >st- >sm- >config, "", 0);
port = config_get_one(drv- >st- >sm- >config, "storage.mysql.port", 0);
dbname = config_get_one(drv- >st- >sm- >config, "storage.mysql.dbname", 0);
user = config_get_one(drv- >st- >sm- >config, "storage.mysql.user", 0);

These are hardcoded to "storage.mysql.*" and would require code changes.

Tomasz Sterna
Xiaoka Grp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the JDev mailing list