• 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: where to store connection pool singleton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: where to store connection pool singleton


  • Subject: Re: where to store connection pool singleton
  • From: Michael Engelhart <email@hidden>
  • Date: Mon, 5 Jul 2004 12:02:53 -0500

Thanks David.
I just modified my Application to

public class Application extends WOApplication implements ERXGracefulShutdown.GracefulApplication {
}


and added:
public void gracefulTerminate() {
	System.out.println("App terminated gracefully");
}

but at least when running from within XCode nothing happens when I hit the stop the application.

Mike
On Jul 5, 2004, at 11:36 AM, David Teran wrote:

Hi,


Am 05.07.2004 um 18:27 schrieb Michael Engelhart:

I have a project where I have a singleton class that hands out connection objects that have a significant startup time (think JDBC connection pool - but this is a legacy system not a database). Where is the best place to store this so I can startup/shutdown this pool by overriding an event somewhere.

I know I can put the startup code in my Application class but is there some sort of shutdown() or destroy() method that gets called before an application shuts down that I can override? I didn't see anything in the WOApplication API and after a lot of googling haven't found any answers on the mailing lists for this type of scenario.



take a look at ERXGracefulShutdown from Project WONDER.

regards David
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: where to store connection pool singleton
      • From: Michael Engelhart <email@hidden>
References: 
 >where to store connection pool singleton (From: Michael Engelhart <email@hidden>)
 >Re: where to store connection pool singleton (From: David Teran <email@hidden>)

  • Prev by Date: Re: where to store connection pool singleton
  • Next by Date: Re: where to store connection pool singleton
  • Previous by thread: Re: where to store connection pool singleton
  • Next by thread: Re: where to store connection pool singleton
  • Index(es):
    • Date
    • Thread