[OJB-developers] Informix Support
Brought to you by:
thma
From: Domagoj J. <do...@la...> - 2002-06-17 12:48:19
|
Hi everybody ! I just would like to hear some directions about adding support for other databases in ojb (I must use Informix). If src/test/setup/db-setup.sql is removed now, does it mean that we don't need the switches in build.properties ? The ".profile" file is now concerned with the database configuration. As I see the data from this file now gets transfered to repository.xml (jdbc-connection-descriptor) when calling ant junit target. For now I see that this should be done : - for Torque : - a DB adapter for Torque for using Informix. - velocity templates for generating SQL for Torque - for OJB : - new "Informix.profile" file. OJB was working with Informix before, so I presume that it only needs Informix.profile ? Please tell me if something else is needed and I will try to make Informix support for ojb. And one another question. In ojb 0.9 (not before) there is junit task used in build.xml. Some of you probably had problems with : "Could not create task // classNotFoundException" when running junit tests, because of Delegating Class Loader implementation of AntClassLoader (see: http://jakarta.apache.org/ant/faq.html#delegating-classloader ), which means that you must have classes that require external library ant that library in the same classpath. (In this case the loaded optional task JUnitTask could'n find classes from junit.jar from ojb/lib because JUnitTask class would be loaded by ClassLoader that is parent of AntClassLoader ). I am interested in your solutions to this problem? I just filled up the enviroment variable CLASSPATH with jars from ojb/lib. Thanx. |