Experimental Physics and
| |||||||||||||||
|
I've actually worked through all the problems I was having getting JCA setup, and now as an application, it seems to be operating correctly. I second this request. It would be great to be able to load the JCALibrary.properties file from a JAR file rather than referring to the file system. Maybe even better would be to modify the algorithm used to find the JCALibrary.properties file so that in addition to looking where it looks in the file system, it will also look on the classpath via the class loader (e.g. Class#getResource or Class#getResourceAsStream). This is similar to how log4j <http://logging.apache.org/log4j/> finds its properties file. My workaround is to package my own custom JCALibrary.properties file in my application JAR file, load it via Class#getResourceAsStream, create a JCA DefaultConfiguration, set its properties from the properties loaded from my custom JCALibrary.properties file, and then create the context with it. -lewis Also, is there a way to create a channel and then 'add' a connection Listener as a separate function? Or a way to close a channel?
| ||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |