SLAC ESD Software Engineering
Group
|
|
AIDA |
|
Aida
Development in Eclipse
|
|
|
This page describes
how to develop AIDA using the Eclipse environment.
Development on Solaris
This section helps you check-out, build, and run an AIDA server under
Eclipse.
- Choose your Eclipse workspace, the development directory. This
should include the OS and WM since those may vary. The cvs checkout
will create the tail of the dir name "aida" so it's best to omit that.
Eg ~greg/dev/eclipse/sun4x_58/motif/
- eclipse [if aliased to
/afs/slac/package/eclipse/@sys/3.0/motif/eclipse/eclipse], giving the
workspace directory.
CVS Checkout and build
- In eclipse, File->New->CVS project
- The module is "package/aida"
- Check out as a java project
- Add libraries from the CLASSPATH
- /afs/slac/package/iona/orbacus/Prod/common/OOC/lib/OB.jar
- /afs/slac/package/iona/orbacus/Prod/common/OOC/lib/OBEvent.jar
- /afs/slac/package/iona/orbacus/Prod/common/OOC/lib/OBUtil.jar
- /afs/slac/g/cd/soft/ref/package/err/lib/err.jar
- /afs/slac/g/cd/soft/ref/package/except/lib/except.jar
- /afs/slac.stanford.edu/package/oracle/b/sun4/9.0.1/jdbc/lib/classes111.zip
- In project properties, add dpCa and dpSlc to the "Excluded"
list. This is because dpCa uses jca, for which we have no jar file, and
dpSlc uses exceptions from aida rather than except.jar.
- Once Eclipse has checked everything out, build Aida from the
solaris command line using aidamake. This is necessary because Eclipse
doesn't know how to derive the CORBA class from idl. When aidamake has
completed, refresh the eclipse project.
- source $CD_SOFT/dev/script/aidaSetEnvDev.csh DEV {ROOT_OF_YOUR_AIDA_ECLIPSE_PROJECT}
- aidamake all
To Run Aida in Eclipse on Solaris
- To run an aida server. Highlight the source of the server to
start, eg da/DaServer.java. On the Run dialog, add ${AIDABCSTRING}
-DAIDA_DATABASE_USERID=AIDA${AIDA_MODE}
-DAIDA_NAMESERVER_IOR_URL=${AIDA_NAMESERVER_IOR_URL} to the VM
Arguments (not the program arguments).
[SLAC ESD Software
Engineering Group][ SLAC Home Page]
Author: Greg White, 27-Sep-2004.
Modified by: