[jdev] sm.xml configure

Norman Rasmussen norman at rasmussen.co.za
Mon Jun 25 16:45:32 CDT 2007


On 6/25/07, Tomasz Sterna <tomek at xiaoka.com> wrote:
> Dnia 25-06-2007, pon o godzinie 18:23 +0800, Zhangmingjie napisał(a):
> > my company is seting up a jabberd2 as im sysytem,my problem is "how to
> > configure sm.xml to support two mysql driver",one mysql is support for
> > authreg and roster,another mysql is support to vcard?
>
> Currently it's impossible to configure two stores of the same kind.

what about adding an attribute to the driver config section which sets
the driver module name?

eg:

<driver>mysql1</driver>
<driver type='vcard'>mysql2</driver>

<mysql1 module='mysql'>
  <host/><port/><etc/>
</mysql1>

<mysql2 module='mysql'>
  <host/><port/><etc/>
</mysql2>

This should be a fairly minor change surely?

-- 
- Norman Rasmussen
 - Email: norman at rasmussen.co.za
 - Home page: http://norman.rasmussen.co.za/


More information about the JDev mailing list