EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: JCA Library usage
From: "J. Lewis Muir" <[email protected]>
To: [email protected]
Date: Fri, 11 May 2007 11:38:39 -0400
David Dudley wrote:
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'm also using the CAJ library with this, so there is no native code in
the thing, and I can run it on any machine I copy the application on to
(major plus!).

All is fine and good to be able to use this, -except-, in the case of
distributing an application, or as an applet, there is no way to provide
a location of where to get the 'JCALibrary.properties' file.  Can the
capability of providing a location (preferably being able to use a URL
Link as well) be added to 'getInstance' (or should I do it?)?

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?

Since this package is supported by cosylab, though I'd suggest it
first, and see what kind of response.

David



References:
JCA Library usage David Dudley

Navigate by Date:
Prev: RE: problem using streams with asyn for Agilent E5810A Ethernet->GPIB Mark Rivers
Next: Re: JCA Library usage Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: JCA Library usage David Dudley
Next: Re: JCA Library usage Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·