• 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: Switching DB at runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching DB at runtime?


  • Subject: Re: Switching DB at runtime?
  • From: "Cheong Hee" <email@hidden>
  • Date: Wed, 7 Jul 2010 16:35:11 +0800

The setConnectionDictionary will have to be done at early stage. Once the default editing context is created, it will be of effect. This is confirmed from my code at least.

Cheers

Cheong Hee

----- Original Message ----- From: "Greg Bartnick" <email@hidden>
To: "Farrukh Ijaz" <email@hidden>
Cc: "WebObjects-Dev Apple" <email@hidden>
Sent: Wednesday, July 07, 2010 3:52 AM
Subject: Re: Switching DB at runtime?



Farrukh,

Take a look at the setConnectionDictionary method of the
com.webobjects.eoaccess.EOModel class.  Using that you would be able
to change the DB connection settings.  Right now I can't remember if
it will change an already connected db connection, but I know I use
that on start up of my apps to override settings.

-Greg


On Sat, Jul 3, 2010 at 1:25 AM, Farrukh Ijaz <email@hidden> wrote:
Question!

Is it possible to switch the DB settings of a running application using API (not the properties file) and the application start using the new DB from the next transaction. The DBs in this case are identicle in structure but data may differ.

Farrukh

Sent from my iPad _______________________________________________
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

_______________________________________________
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 

_______________________________________________
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


References: 
 >Switching DB at runtime? (From: Farrukh Ijaz <email@hidden>)
 >Re: Switching DB at runtime? (From: Greg Bartnick <email@hidden>)

  • Prev by Date: Re: OT: JPEG EXIF Image Orientation
  • Next by Date: Re: Which version of Eclipse for WO?
  • Previous by thread: Re: Switching DB at runtime?
  • Next by thread: EOF and 2 x Database Connections
  • Index(es):
    • Date
    • Thread