cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Handling multiple databases using Cayenne+Spring
Date Wed, 07 Apr 2010 08:39:10 GMT
There are a few samples in Cayenne itself. E.g.:

Or a more complex one, parsing XML file:

"Location" is a bit of a misnomer (and will be renamed in the new  
versions of Cayenne). This is really an arbitrary String understood by  
the factory and meaningless to Cayenne, that is stored in cayenne.xml  
and passed by Cayenne to the factory 'getDataSource' method. So e.g.  
you can use that parameter to give your factory a hint on what  
platform you are on or something.

Hopes that clarifies it a bit.


On Apr 7, 2010, at 11:31 AM, Sudheer wrote:

> Thank you for the response.
> Can I have sample code for this? or reference document explaining  
> how to do.
> Actually I am coonfused with the approach. Within modeler, for the  
> custom
> data source factory, location is mandatory. I would like to know how
> cayenne.xml looks like while customizing data source factory?
> Can we create multiple domains in Cayenne modeler to support different
> platforms? or within single domain do we need to create multiple  
> nodes?
> Thank You,
> Sudheer
> -- 
> View this message in context:
> Sent from the Cayenne - User mailing list archive at

View raw message