Thanks to all guys, I'll go the properties way ;-)
regards, Riccardo De Menna On 03/ott/2013, at 06:50, Klaus Berkling <[email protected]> wrote: > > On Oct 2, 2013, at 3:04 PM, Riccardo De Menna <[email protected]> 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 protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/demenna%40tuorlo.net > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
