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

Reply via email to