Re: Switching DB at runtime?
Re: Switching DB at runtime?
- Subject: Re: Switching DB at runtime?
- From: Greg Bartnick <email@hidden>
- Date: Tue, 6 Jul 2010 14:52:18 -0500
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