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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [email protected]


--
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to