Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences

Edit this page


Referenced by
AppFuseSupport




JSPWiki v2.2.33

[RSS]


Hide Menu

MultipleDatabases


Multiple Databases

  • Is there an easy way in Appfuse to switch between various databases?

If you use many different Databases, you can point AppFuse to the various instances by having 1 properties file for each db driver/type. Then in the properties.xml file:

    <property name="db.driver" value="mysql"/>
    <property file="${db.driver}.properties"/>
    <propertycopy name="database.jar.path" from="${database.type}.jar" silent="true"/>
    <property name="database.jar" location="${database.jar.path}"/>

So you can do builds with -Ddb.driver=mysql or -Ddb.driver=db2.typeII and the builds will load mysql.properties or db2.typeII.properties as the database configuration file.

Great tip from Matthew Fleming!


Attachments:
mysql.properties Info on mysql.properties 541 bytes


Go to top   Edit this page   More info...   Attach file...
This page last changed on 06-Nov-2006 13:52:59 MST by BenGill.