• 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: new EOObjectStoreCoordinator and closing database connection afterwards
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new EOObjectStoreCoordinator and closing database connection afterwards


  • Subject: Re: new EOObjectStoreCoordinator and closing database connection afterwards
  • From: Klaus Berkling <email@hidden>
  • Date: Wed, 2 Jul 2008 11:22:40 -0700


On Jul 1, 2008, at 10:05 PM, Lon Varscsak wrote:

This is the connection I assumed wasn't closing, but Klaus would have to chime in.  I'm using:

new ERXEC(new ERXObjectStoreCoordinator(true));

in one specific instance and calling dispose() when I'm done (on the OSC) seems to do the trick (closes both connections properly).

MMh, I need to look at dispose again.  I tried hat and it does nothing at the database and gives me a null pointer exception after I fall through the bottom of the request response (ie. the log out page).

I pointed Klause to ERXEOAccessUtilities.closeDatabaseConnections which is what I believe does the trickery (called from OSC's dispose method).

Thanks.  (You saw I already do that.)

But maybe I misunderstood the problem. :)

The actual issue is that with the code I have I accumulate database connections. Every session opens two connections but closes only one when the session terminates. After two sessions terminate I have two connections to the database that are not needed. The connections won't be closed until I quit the instance.

Leaving this in the application class and round robin the connection is a wiser choice since that would not kill my database with a spike in sessions or when sessions don't terminate...

I'll do more digging in WOnder to see how that's done.... sigh, I so need to rewrite my app... but that's another story.

Thanks all.

kib

"Success is not final, failure is not fatal: it is the courage to continue that counts.”
- Winston Churchill

Klaus Berkling
Systems Administrator
DynEd International, Inc.
www.dyned.com | www.eskimo.com/~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

References: 
 >new EOObjectStoreCoordinator and closing database connection afterwards (From: Klaus Berkling <email@hidden>)
 >Re: new EOObjectStoreCoordinator and closing database connection afterwards (From: "Lon Varscsak" <email@hidden>)
 >Re: new EOObjectStoreCoordinator and closing database connection afterwards (From: Mike Schrag <email@hidden>)
 >Re: new EOObjectStoreCoordinator and closing database connection afterwards (From: Chuck Hill <email@hidden>)
 >Re: new EOObjectStoreCoordinator and closing database connection afterwards (From: Mike Schrag <email@hidden>)
 >Re: new EOObjectStoreCoordinator and closing database connection afterwards (From: "Lon Varscsak" <email@hidden>)

  • Prev by Date: Saving Values with EOF
  • Next by Date: How to use WebServicesAssistant on Leopard
  • Previous by thread: Re: new EOObjectStoreCoordinator and closing database connection afterwards
  • Next by thread: Re: new EOObjectStoreCoordinator and closing database connection afterwards
  • Index(es):
    • Date
    • Thread