I want to be able to share TCF among various projects (that's the
point after all). I've reconciled myself to having to assign a
tcfsearchpath as " /../../.. ... /TCFs" before instantiation in order
to share a TCF among different webroots.
But I would like to be able to specify Instance Variables for each
object instance, for example to specify DSNs differently for each web
site. Alas, there doesn't seem to be a mechanism to pass in the
instance variables when the Object is Instantiated.
I'm consider two ways to do this:
* read a config file in the On_Create method (maybe by <@include>).
I would need to build in some logic to find the config file for each
instance.
* instance_init method
Here I could pass in the instance variables as method parameters for
assignment, but the Object wouldn't really be "Created" and ready to
use until initialization is complete. One could imagine some
problems if initialization was delayed, or some other thread started
to use an object before or during initialization, so to be perfectly
safe, I would probably need to check Instance Variable semaphore at
the top of each method (ugh!).
Are there any other things to consider, or other approaches?
Thanks
bill
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf