[EMAIL PROTECTED] wrote: > hi all, > we would like to set up a working mmbase using a db2 database. > We understood from earlier communication that a db2 driver would be > included in mmbase distros or shared with the community in another way. > Can anybody tell me where to get a db2 driver for mmbase or alternatively, > provide a procedure how to set it up?
MMBase uses jdbc-drivers to connect to the database, and does not itself ship these (e.g. because of licenses). For mysql/postgresql this is explained in: http://www.mmbase.org/download/builds/stable/2003-03-08/mmdocs/administrators/databasesonfiguration.html I have no idea if mmbase would work with db2. But to try it you could do the following: Download a jdbc driver, and put it in WEB-INF/lib The driver class then specify in WEB-INF/config/modules/jdbc.xml like this <property name="driver">org.gjt.mm.mysql.Driver</property> (but then for db2). On default then the 'relational' mmbase variants will be used, which is a good starting point. If this proves not to generate good sql (forgets to escape keywords or so), you can edit 'lookup.xml' and create a 'db2.xml'. If it works don't forget to send it to the developers list and then it will be added to the next release. If this all sounds too complicated then I'm even prepared to invest some time in it myself, but then you have to help me about What Is Db2, Where Do I Dowload It, How Do I Install Db2 On My Computer, What Is The General Homepage For Db2 and so on. Michiel -- mihxil' Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 []()
