• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I configure an EOModel's connection info if it comes from a framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How do I configure an EOModel's connection info if it comes from a framework
      • From: Riccardo De Menna <email@hidden>
References: 
 >How do I configure an EOModel's connection info if it comes from a framework (From: Riccardo De Menna <email@hidden>)

  • Prev by Date: Re: How do I configure an EOModel's connection info if it comes from a framework
  • Next by Date: Re: How do I configure an EOModel's connection info if it comes from a framework
  • Previous by thread: Re: How do I configure an EOModel's connection info if it comes from a framework
  • Next by thread: Re: How do I configure an EOModel's connection info if it comes from a framework
  • Index(es):
    • Date
    • Thread