• 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: DB-Connections in for-loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DB-Connections in for-loop?


  • Subject: Re: DB-Connections in for-loop?
  • From: LD <email@hidden>
  • Date: Wed, 19 Oct 2005 04:03:51 +1000

Hi there,

On 19/10/2005, at 3:20 AM, Chuck Hill wrote:

On Oct 17, 2005, at 1:23 AM, Ute Hoffmann wrote:

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.
<...>


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.

e.g., WebServices Server/Client architecture

Question: Are the indentical DB's for duplicate applications?

Maybe consider abstracting your WOApps one step further by wrapping your main database with a Web Services app instead of duplicating your database (except for backup).

with regards,
--

LD


_______________________________________________ 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: 
 >DB-Connections in for-loop? (From: Ute Hoffmann <email@hidden>)
 >Re: DB-Connections in for-loop? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Trouble Deleting and Adding an EOModel
  • Next by Date: Re: Problems deserializing EOGenericRecords via WebServices
  • Previous by thread: Re: DB-Connections in for-loop?
  • Next by thread: Re: DB-Connections in for-loop?
  • Index(es):
    • Date
    • Thread