Well... in a production environment, the recommended way to deploy
would be a DataSource provided by your container.. Cayenne fully
supports JNDI:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
http://objectstyle.org/confluence/display/CAYDOC/Using+JNDI
Cris
On 2/16/06, Tomi NA <hefes..mail.com> wrote:
> I've seen the issue come up a couple of years ago so maybe this is just a
> confirmation request.
> What is the recommended way to initialize the DataContext with runtime
> username/password setting?
> Doing web app development, this kind of initialization was good:
> Configuration.getSharedConfiguration().getDomain().createDataContext()
> A plaintext file containing a password on every users hard drive is a recipe
> for trouble.
>
> TIA,
> Tomislav
>
This archive was generated by hypermail 2.0.0 : Thu Feb 16 2006 - 17:16:14 EST