On Dec 12, 2007, at 01:23 , Heinrich du Toit wrote:
Wouldn't it be nice to specify the EPICS_CA_* values firstly through
functions in the library rather than environment variables only.
I agree, because environment variables can get set who knows where.
It's often preferable to have settings of this kind in
a per-application setup file, and for GUI programs one
should be able to display and change settings via preference pages.
With Java clients, that's possible to some extend:
You can use
System.setProperty("gov.aps.jca.jni.JNIContext.addr_list", "..your
address list..")
programmatically before(!) loading the JCA library,
or place these settings in Java property files.
(Example is for JNI. For CAJ, there are corresponding properties).
-Kay