cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <>
Subject Re: Alternate connection for prod/dev
Date Wed, 13 Aug 2014 23:09:53 GMT
Hi Lon,

In a Tapestry (or other web-based applications), you typically want to use
JNDI for database connections.  To do this you tell Cayenne to use JNDI in
the Modeler, then you configure the JNDI database connection (the JDBC URL,
username, and passord) in your application server (Jetty, Tomcat, etc).
This way neither Cayenne nor Tapestry need to know about the database
specifics since that is maintained by the application server and is
therefore more portable.  This is how we do all of our web-based work.

If this appeals to you, let us know and we can give you further details.


On Wed, Aug 13, 2014 at 5:21 PM, Lon Varscsak <>

> Hey guys, newb gentlle. :P
> I'm using Tapestry (newb there too) to build an app that connects to
> Cayenne and it looks like they have these modules that
> "contributeApplicationDefaults" where you specify values and keys for
> things.  I have a module for Development/QA/Production.  I tried setting
> "cayenne.jdbc.url" in the development module to connect to my DEV db and
> another for my production db...but it looks like Cayenne doesn't honor
> this.
> How would I set different urls for different "modes" for the application?
> Thanks,
> Lon

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message