I am trying to change the database to Oracle or MySQL.
So I add this to my HOME build.properties:

database.default.name = mysql
org.apache.jetspeed.database.url = jdbc:mysql://arsenal/j2-test
org.apache.jetspeed.database.driver = com.mysql.jdbc.Driver
org.apache.jetspeed.database.user = jetspeed
org.apache.jetspeed.database.password = whatever

But I noticed that OJB was creating JOIN statements for HSQL, not Oracle.
After some digging i see we have a repository_database.xml, and it seems to be replicated all over the place, in:


components/persistence
components/prefs
components/registry
components/security
portals

<jdbc-connection-descriptor
        jcd-alias='jetspeed'
        default-connection='true'
        platform="Hsqldb'

I think it would be best if we only had to change the database connection and OJB directive in one centralized place.
Or perhaps one place for tests, and one for deployment.


Does anyone know how to parameterize the "default-connection" attribute above?
Or does anyone know a better way to set OJB's platform?



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to