Re: Multiple Questions

From: Mike Kienenberger (mkienen..laska.net)
Date: Sat Jun 05 2004 - 16:37:46 EDT

  • Next message: Elia Morling: "Re: Multiple Questions"

    > On Jun 5, 2004, at 12:36 PM, Elia Morling wrote:
    > > 5. Must the cayenne.xml files reside in the root of my application?
    > > Can I store them somewhere
    > > else i.e. in a folder named xml? I like to keep my roots tidy...
    >
    > You can use FileConfiguration to load cayenne.xml from arbitrary
    > location. See
    > http://www.objectstyle.org/cayenne/userguide/deploy/custom.html

    Here's an example:

            FileConfiguration conf = new FileConfiguration("cayenne.xml");
            conf.addFilesystemPath(new File("WEB-INF"));
            Configuration.initializeSharedConfiguration(conf);

    I share daily batch processing code with a j2ee web app. This is how I
    configure it for my batch job. [cwd is above WEB-INF]



    This archive was generated by hypermail 2.0.0 : Sat Jun 05 2004 - 16:37:56 EDT