|
Hi,
HDB++ configurator jar file can be downloaded from ESRF ftp site: ftp://ftp.esrf.fr/pub/cs/tango/hdb++/
Here is the HDB++ configurator startup script:
#!/bin/bash
#
#———————————————————————–
# Source the JavaAppliStartup script which defines a few variables
# which you can use later in your script :
#
# TANGO (for TangORB.jar)
# TACO (for Taco.jar)
# ATK (for the 2 jarfiles ATKCore and ATKWidget)
# TANGOPANELS (for tangopanels.jar)
# ATKPANEL (for atkpanel.jar)
# LIBHOME (for the folder where all java library jarfiles are located)
# TACOLIBHOME (for the folder where all TACO java library jarfiles are located)
# APPLIHOME (for the folder where your application jarfile should be located)
# JAVA (for the JVM to use for the application startup)
#———————————————————
TANGO_HOME=/operation/dserver/java
. $TANGO_HOME/scripts/Common/JavaAppliStartup
#——————————————————————————–
# If you need to modify any of the variables above do it here
# In most cases this section is empty
#
# For example :
# JAVA=/opt/java-1.6.0_18/bin/java if you need to use another JVM than the default one
# TANGO=$LIBHOME/TangORB-7.3.0.jar
# ATK=$LIBHOME/ATKCore-4.1.6.jar:$LIBHOME/ATKWidget-4.1.6.jar
# ATKPANEL=$APPLIHOME/atkpanel-4.3-old.jar
#——————————————————————————-
JIVE=$APPLIHOME/Jive.jar
ASTOR=$APPLIHOME/astor.jar
JYTHON=$LIBHOME/jython.jar
JCALENDAR=$LIBHOME/JCalendar/jcalendar.jar
HDB_LIBS=$LIBHOME/HDB++.jar:$JYTHON:$JCALENDAR
HDB=$APPLIHOME/jhdbviewer.jar:$HDB_LIBS
export HdbExtraction=true
export HDB_MYSQL_HOST=hdbplus
#——————————————————————————–
# Set the variables for Application jarfile, Package and Main class name
#
# Set APPLI_JAR to the absolute pathname of your application's jarfile
# Set APPLI_PACKAGE to the fully qualified package name which contains the main class
# example : fr.esrf.tangoatk.widget.util.jdraw
# Set APPLI_MAIN_CLASS to the name of the main class that this script should start
#——————————————————————————-
APPLI_JAR=$APPLIHOME/hdb_configurator.jar
APPLI_PACKAGE=org.tango.hdb_configurator
APPLI_MAIN_CLASS=configurator.HdbConfigurator
#——————————————————————————–
# Set the eventual additional variables Specific to the application
#
# Here you can add some jarfiles which contains other applications you may launch
# through your application
#——————————————————————————-
#
# if manager device is passed, forward it
# else set the default one (for MySql)
#
if [ -n "$1" ]
then
HdbManager=$1
else
HdbManager=tango/hdb/manager
fi
export HdbManager
#——————————————————————————–
# Set the CLASSPATH
#——————————————————————————-
CLASSPATH=$EXTRACTION:$TANGO:$ATK:$JIVE:$APPLI_JAR:$ASTOR:$HDB
export CLASSPATH
echo "CLASSPATH=$CLASSPATH"
#——————————————————————————–
# Set the TANGO_HOST
# !!!!!!! MUST BE ON 10000 !!!!!
#——————————————————————————-
TANGO_HOST=orion:10000
export HDB_TYPE=cassandra
export HDB_CONTACT_POINTS="hdbr1,hdbr2,hdbr3"
#———————————————————————————–
# Start the application
#
# All applications should normally have the same startup command line
#———————————————————————————–
#
$JAVA -version
echo "Starting $APPLI_MAIN_CLASS …"
$JAVA $APPLI_PACKAGE.$APPLI_MAIN_CLASS $*
Hope this helps Jean-Luc
|