Re: Oh, yeah...

From: Mike Kienenberger (mkienen..laska.net)
Date: Mon Aug 02 2004 - 10:32:46 EDT

  • Next message: Mike Kienenberger: "Re: Problems to execute(SELECT MAX)."

    Todd O'Bryan <toddobrya..ac.com> wrote:
    > The other part of that question is, is there a way to have the same
    > Cayenne configuration file be set up to connect to two different
    > databases depending on a parameter, i.e., the production database and
    > the test database?

    Depends on your usage/environment.

    The cdeploy ant task will update your cayenne.xml file to point to any
    particular database.

    Or you can set up jndi resources on both the production and dev server that
    point to separate databases.

    You can also specify a different name for "cayenne.xml" depending on which
    environment you want to connect to.

    There's many-many-many different ways to approach this (at pretty much any
    point in the process).

    -Mike



    This archive was generated by hypermail 2.0.0 : Mon Aug 02 2004 - 10:32:18 EDT