EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  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  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Using CAJ in production
From: Matej Sekoranja <[email protected]>
To: "J. Lewis Muir" <[email protected]>
Cc: "Shankar, Murali" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 3 Dec 2012 12:44:30 +0100
> Hi, Matej.
>
> OK, if CA expects the short hostname, why is that not the default in
> CAJ?  Why even provide the CAJ_STRIP_HOSTNAME system property?  If there
> is a dot in the name, just drop it and everything after it.

CAJ default is SHN, however under some circumstances it can return FQDN.
At that time we decided to go that way (and not be smart in CAJ code).

java.net.InetAddress.getLocalHost().getHostName() is used to get host name.
I gets more interesting if you have more that one IF installed (Java 6
new API helps here).
Calling System.exec("hostname") is not a good way to get it.

Matej

Replies:
Re: Using CAJ in production J. Lewis Muir
References:
Using CAJ in production Shankar, Murali
Re: Using CAJ in production J. Lewis Muir
Re: Using CAJ in production Matej Sekoranja
Re: Using CAJ in production J. Lewis Muir
Re: Using CAJ in production Matej Sekoranja
Re: Using CAJ in production J. Lewis Muir

Navigate by Date:
Prev: Re: mask for bitwise operation in CALC record haquin
Next: waveform put in CSS Pavel Maslov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Using CAJ in production J. Lewis Muir
Next: Re: Using CAJ in production J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·