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


Referenced by
AppFuseSupport




JSPWiki v2.2.33

[RSS]


Hide Menu

MultipleDatabases


This is version 2. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]


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   More info...   Attach file...
This particular version was published on 06-Nov-2006 13:52:48 MST by BenGill.