[JDEV] Adding Transport registration in xdb_sql

raditha dissanayake jabber at raditha.com
Wed Sep 18 23:19:37 CDT 2002


Hi,
please make sure that you are defining a v2 query. Otherwise you have to 
write your own function to verify it. However the error you are seeing 
is most likely to be caused by invalid xml. Please try opening your 
xdb_sql.xml file in a browser or xml editor to figure out where the 
error is.

Perhaps i  should also mention that msn transport does not work out of 
the box with xdb_sql



Benoit Decaudin wrote:

>Hi there. I'm trying to add the registration settings of a transport to the
>xdb_sql database.
>
>I have an instance of jabberd running as the MSN Transport with its own
>xdb_sql instance, and I've done the following :
>
>- Added three querydefs to the xdb_sql configuration file, named 'msn-get',
>'msn-set' and 'msn-remove' ;
>- Added three new validator functions in xdb_sql_config.c for these
>querydefs ;
>- Added related functions in a file xdb_sql_msn.c and appropriate headers in
>xdb_sql.h.
>
>Xdb_sql compiles fine, however I always have this error when starting the
>server :
>[alert] (-internal): [xdbsql_config_init] query 'msn-remove' validate failed
>[alert] (-internal): [xdb_sql] configuration failed
>
>(This error also appears with queries 'msn-set' and 'msn-get')
>
>Thanks for any idea.
>
>Benoît
>
>
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>http://mailman.jabber.org/listinfo/jdev
>  
>





More information about the JDev mailing list