Passing variable from DirectAction to Session constructor
Passing variable from DirectAction to Session constructor
- Subject: Passing variable from DirectAction to Session constructor
- From: "Cheong Hee (Gmail-P)" <email@hidden>
- Date: Tue, 7 Apr 2009 12:18:42 +0800
Dear all
I would like to pass in a value e.g. organization name from DirectAction to
Session constructor. It allows me to look at the organization name and
decide if a new ObjectStoreCoordinator to be created and
setDefaultEditingContext accordingly during session construction stage.
This is taking Chuck's suggestion to create one OSC per organization name,
rather than create new OSC per session. How is the value be passed into
Session constructor from DirectAction? I have figured hard and must have
overlooked something. Appreciate any pointers.
Also, since session().setDefaultEditingContext is not allowed to set to
another EC after it is being called, is there any way to force it through if
so required.
Cheers
Cheong Hee
_______________________________________________
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