• 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: JDBC URL on a per session basis
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JDBC URL on a per session basis


  • Subject: Re: JDBC URL on a per session basis
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 16 Feb 2009 11:33:52 -0800


On Feb 15, 2009, at 2:19 AM, Andrew Lindesay wrote:

Hello Richard;

I've not done anything like this, but maybe you might be able to create a new model-group for each session somehow and then change the connection dictionary on the model in the model group, but I'm not sure on the mechanics of that as I've not done anything like this.

You will also need a separate EOF stack for each. That can eat up a lot of memory if there are a lot of objects in common in each session. You probably should do this on a per-customer basis not a per session basis (unless each customer is only a user or two). Wonder has some code that creates a pool of EOF stacks. That is probably good starting point.


Chuck


Is it possible to set the JDBC URL for one of my models on a per session basis? I need to connect to a different database based on which customer is logged in, and i'd rather not have to deploy a new copy of my app for each customer.

___
Andrew Lindesay
www.lindesay.co.nz

_______________________________________________
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


-- Chuck Hill Senior Consultant / VP Development

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
  • Follow-Ups:
    • Re: JDBC URL on a per session basis
      • From: Richard Stephens <email@hidden>
References: 
 >JDBC URL on a per session basis (From: Richard Stephens <email@hidden>)
 >Re: JDBC URL on a per session basis (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: where to put the css and JS
  • Next by Date: Updating WORequest form values in 5.4
  • Previous by thread: Re: JDBC URL on a per session basis
  • Next by thread: Re: JDBC URL on a per session basis
  • Index(es):
    • Date
    • Thread