• 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
One App, db connection onload, depending on WebAdress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

One App, db connection onload, depending on WebAdress


  • Subject: One App, db connection onload, depending on WebAdress
  • From: Ute Hoffmann <email@hidden>
  • Date: Fri, 5 Mar 2004 10:14:01 +0100

Hallo,
I'm thinking of connecting from different virtual host addresses to the same app but using a different DB for each address. The app would need to know which Adress it was talking to and connect to the right database depending on the current Adress.


The Modelfiles of this App are in a framework and the App sets the url for the modelfiles in the Application Class onload, each App for its specific DB at the moment.

I think I know that I can check the URL and find out from which virtual host it is coming. I probably could then add a conditional loading the right database URL, but I would probably not be able to do this in the Applikation Class? Would the Session be the right place for this and if yes, am I right that each session would have its own DB Connection, which would not be what I want to have.

Is there a way to set the db connections in the Application Class and just switch between databases depending on which Webadress the user comes from, but having only one connection for each DB. If yes, would it also work with ConcurrentRequestHandling enabled?

I hope I got this clear. Any hints you can give me on this?

Regards,
Ute
_______________________________________________
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.


  • Prev by Date: RE: relationship problem with validation
  • Next by Date: Re: webobjects-dev digest, Vol 1 #833 - 10 msgs
  • Previous by thread: Re: :)
  • Next by thread: Re: One App, db connection onload, depending on WebAdress
  • Index(es):
    • Date
    • Thread