Re: DB-Connections in for-loop?
Re: DB-Connections in for-loop?
- Subject: Re: DB-Connections in for-loop?
- From: Chuck Hill <email@hidden>
- Date: Tue, 18 Oct 2005 10:20:22 -0700
On Oct 17, 2005, at 1:23 AM, Ute Hoffmann wrote:
Hallo,
do you think it si possible to do this:
Have a for-loop which loops through a list of database connections.
Each loop sets the value of a given modelfile to those of a
different DB, then makes a connection, updates some values, closes
the connection....
You will need to create a different model group for each if the
models have entities with the same name. That means then that they
will have different snapshot stores and you can't
"localInstanceOfObject" from one the other (hmmm, I think).
Closing the connection and discarding the EOF stack may also take you
into buggy EOF territory.
Is that possible or will I get myself into trouble with that design.
My guess would be trouble.
Background: I have a number of identical DB's and want to update/
hand over some values from a different WOApp into those DB's.
I'd look at other alternatives.
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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