Re: Starting up with different cayenne.xml filename

From: Jeremias Maerki (de..eremias-maerki.ch)
Date: Wed May 13 2009 - 11:43:30 EDT

  • Next message: Andrus Adamchik: "Re: Cayenne under OSGi works"

    I believe you can do the following:
            Configuration.initializeSharedConfiguration(new DefaultConfiguration("myfile.xml"));
            Configuration cfg = Configuration.getSharedConfiguration();

    Not sure how that translates to Spring, though.

    See also: http://cayenne.apache.org/doc/customizing-configuration.html

    On 13.05.2009 17:21:29 Dave Lamy wrote:
    > This is probably immensely easy but the coffee isn't working this morning:
    >
    > I was hoping to spring-inject a cayenne configuration filename (cayenne.xml
    > by default). I've looked at the Configuration class but any opportunity to
    > use something other than DEFAULT_DOMAIN_FILE seems to only be scoped at
    > protected.
    >
    > Am I missing something? Or do I need to create a subclass in order to pull
    > this off?
    >
    > Thanks--
    > Dave

    HTH,
    Jeremias Maerki



    This archive was generated by hypermail 2.0.0 : Wed May 13 2009 - 11:44:04 EDT