Re: How do I configure an EOModel's connection info if it comes from a framework
Re: How do I configure an EOModel's connection info if it comes from a framework
- Subject: Re: How do I configure an EOModel's connection info if it comes from a framework
- From: Klaus Berkling <email@hidden>
- Date: Wed, 02 Oct 2013 21:50:02 -0700
On Oct 2, 2013, at 3:04 PM, Riccardo De Menna <email@hidden> wrote:
> I have a question regarding how to configure an EOModel. The model is complete with connection info, db driver setup and so on and it works fine.
> How should I behave if I wanted it to be more of an abstract thing and stick it into a framework so that different apps can include it, but replace their specific connection info that is relevant to them only?
The Property files are your friend. :-)
I have two apps, admin front-end and user front-end. Both apps use the same EOModel framework.
All the connection information is in the property file from each of the apps. Since each app runs on different servers the connection information can be different (e.g. localhost vs db.something.com, or different db usernames)
In addition I use Properties.<username> in my development environments (work & home).
You can also add the connection information to the command line arguments in JavaMonitor, which is what I do on my test server.
kib
Klaus Berkling
www.berkling.us | @kiberkli
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden