On Thu, 8 Apr 2004, Frank Renaers wrote: > The problem is that we have to define a 'platform' setting in the > jdbc-connection-descriptor, > > So if a client uses another database, we have to change the platform > setting in repository_database.xml. (i.e. change our WAR file!) > > Is there a workaround for this ? > > Is it possible to set the platform setting at runtime based on the > specified driver name ?
You can set the platform at runtime using the JdbcConnectionDescriptor.setDbms method (prior to acquiring a persistence broker) - see here for an example: http://db.apache.org/ojb/faq.html#Connect%20to%20database%20at%20runtime? As to determining the runtime for a given driver, there is the problem that there is a plethora of drivers for the various databases which even every once in a while change names (e.g. MySql). So in order to support this, we would have to keep track of the various drivers and maintain a map for them ... Since you have to have a means for your customer to specify the database driver (which is a change to the jdbc connection descriptor, as well), it should be no problem to let him specify the platform too ? Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
