ejabberd - Comments for "MySQL integration" https://www.ejabberd.im/node/129 en Convert your Python code to a Neutron plugin https://www.ejabberd.im/node/129#comment-432 <p>What about converting your Python code into a plugin for <noindex><a href="/neutron" rel="nofollow" >Neutron</a></noindex>? There are a lot of plugins already written, so you have examples to look at.</p> Fri, 06 May 2005 11:58:30 +0000 mfoss comment 432 at https://www.ejabberd.im "me too!" https://www.ejabberd.im/node/129#comment-430 <p>I'm in a similiar boat here..what i want to do is modify a bot query and have a !search blah got and query a mysql database and return the information. I've got the python stuff working ok (i'm a newbie to python) but i'm struggling to work out how to make this execute as a bot query.any help would be splendid :)</p> Fri, 06 May 2005 01:44:35 +0000 stevendoyle comment 430 at https://www.ejabberd.im "Consider releasing the basic https://www.ejabberd.im/node/129#comment-307 <p>"Consider releasing the basic part of your client (only the section of it that deals with XML-RPC) so I can publish it as an example client to complement my server module."</p> <p>No need to do that - we are planning to license Pandion, but the XMP-RPC calls would be made from the PHP code. If I did decide to use your module I could release the relevant parts.</p> <p>I assume a roster item is a contact? If so then your feature list looks fine. I would like to be able to delete contacts and add groups (does ejabberd support groups?), but that is not too important.</p> <p>I still haven't decided between XML-RPC or ODBC though. Can anyone tell me how running through ODBC would affect the performance.</p> Wed, 06 Apr 2005 07:32:12 +0000 joshduck@jabber.org comment 307 at https://www.ejabberd.im consider releasing an example client https://www.ejabberd.im/node/129#comment-302 <p>I've published it as <a href="/mod_xmlrpc">mod_xmlrpc</a>.</p> <blockquote>What features have been implemented?</blockquote> <p>Some calls to create user, change password and add roster item. Tell me if you need aditional calls like 'remove roster item', 'remove user' etc. There's no security in it yet.</p> <p>Consider releasing the basic part of your client (only the section of it that deals with XML-RPC) so I can publish it as an example client to complement my server module.</p> Tue, 05 Apr 2005 07:49:26 +0000 mfoss comment 302 at https://www.ejabberd.im XML-RPC https://www.ejabberd.im/node/129#comment-300 <p>Thanks both for your feedback, I wrote a long reply here a little while ago, but it seems my post didn't show up.</p> <p>All the options here seem to be good. Just a few more questions about each.</p> <p>* ODBC - Would this have a major effect on the speed of the server? If calls were made on on log in and log out then this would not be an issue. In all probability the MySQL server will be on a seperate machine.<br /> * XML-RPC - This seems to be the best option at the moment. Badlop, you said in another post (<a href="http://www.ejabberd.im/node/136" title="http://www.ejabberd.im/node/136">http://www.ejabberd.im/node/136</a>) that you had finished the module. What features have been implemented? I would like to mirror changes in friends lists across the website and the Jabber, but if this is not possible then I can deal with that.</p> <p>Thanks again for your help. I haven't ever dealt with erlang before, and I'm more for a web developer than a programmer so I'm slowly trying to figure this out.</p> Mon, 04 Apr 2005 07:06:47 +0000 joshduck@jabber.org comment 300 at https://www.ejabberd.im You might be interested to kn https://www.ejabberd.im/node/129#comment-249 <p>You might be interested to know that the <a href="http://jabberstudio.org/cgi-bin/viewcvs.cgi/cvs/ejabberd/src/odbc/">odbc directory in cvs of ejabberd</a> will use xdb_sql (Alexey said me). It will be only tested against PostgreSQL, but it probably will work (with maybe a few changes/patches) with every database supported by xdb_sql.</p> <p> --<br /> sander</p> Thu, 10 Mar 2005 17:30:26 +0000 sander comment 249 at https://www.ejabberd.im What about a module that serves XML-RPC? https://www.ejabberd.im/node/129#comment-248 <blockquote>My project will require integration with a MySQL user database. My current plan is to mirror relevant actions to the MySQL database in the Mnesia database.</blockquote> <p>I understand as 'relevant actions': <ul> <li>create, remove user </li><li>change password </li><li>change name, surname, telephone... in the vcard </li><li>add/remove a new item to a user roster </li></ul> All this is already available in ejabberd as functions, and can be called from anywhere in ejabberd: the web administration, ejabberd_ctl command line tool, Discovery...</p> <p>For example, several of these actions are available from the ejabberd_ctl command line tool. It's easy to add new commands that fulfill your requirements. However, ejabberd_ctl starts a new Erlang virtual machine for every call, so if you plan to call it a lot (several times every minute), it's not the best solution.</p> <p>Other possibility is to write a new module for ejabberd that starts a <a href="http://www.gleipnir.com/xmlrpc/">XML-RPC</a> or <a href="http://www.erlang-projects.org/Public/news/erlsoap_0.3/view">SOAP</a> server and provides functions to everything you want.</p> <blockquote>Should I connect from PHP through Jabber to the server or could ejabberd implement a SOAP interface?</blockquote> <p>That depends on what do you want to do and what information do you have: <ul> <li>Jabber: If you have the user password, you can act as if you were the legitimate user. </li><li>Jabber-admin: There's <a href="http://www.jabber.org/jeps/jep-0133.html">JEP-0133: Service Administration</a>, but ejabberd does not implement it, I think. </li><li>XML-RPC, SOAP...: Full access, customizability... </li></ul> </p> <p>I'm writting a XML-RPC server in Erlang (not related to ejabberd). Once I get some experience, I'd like to convert it as an ejabberd module. With minimum changes you'd have what you want, right?</p> Thu, 10 Mar 2005 12:07:37 +0000 mfoss comment 248 at https://www.ejabberd.im