Updating CLASSPATH:
Please include the jar files
listed under %NARADA_HOME%/lib in your classpath. This includes the
jxta.jar file, the generation of which is described below.
UNIX
naradaBrokering_home=/home/users/user-name/NaradaBrokering
classpath=.:$naradaBrokering_home/lib/NaradaBrokering.jar:$naradaBrokering_home/lib/jms.jar:
$naradaBrokering_home/lib/jndi.jar:$naradaBrokering_home/lib/log4j.jar:
$naradaBrokering_home/lib/exolabJMSselector.jar:$naradaBrokering_home/lib/apache-regexp_1.1.jar:
$naradaBrokering_home/lib/antlrall_2.7.1.jar
export classpath
Windows
classpath=.;%naradaBrokering_home%\lib\NaradaBrokering.jar;%naradaBrokering_home%\lib\jms.jar;
%naradaBrokering_home%\lib\jndi.jar;%naradaBrokering_home%\lib\log4j.jar;
%naradaBrokering_home%lib\exolabJMSselector.jar;%naradaBrokering_home%\lib\apache-regexp_1.1.jar;
%naradaBrokering_home%\lib\antlrall_2.7.1.jar
Using NaradaBrokering with
Anabas
The first step involves
moving the GXOJava.jar file provided in the distribution to the right locations
with the
right names. In the script below simply update the location of your
Anabas installation
anabas_home
= /home/users/user-name/anabas
cp ~/GXOJava.jar $anabas_home/lib/
cd anabas/lib
pwd
mv GXOJava.jar gxo.jar
echo "Moved GXOJava.jar to gxo.jar"
cd ../tomcat/lib
pwd
cp ~/GXOJava.jar .
mv GXOJava.jar GMS_Sonic.jar
cd ../webapps/ROOT/install/
pwd
cp ~/GXOJava.jar .
The second step pertaining to
accessing the
anabas_home/config/system.properties.linux
file and updating the anabas.vcs.gmshost
variable to reflect the host on which the NaradaBrokering broker instance is
running. We also need to update the anabas.vcs.gmsport variable's
value to the port number (default 3045) on which NaradaBrokering is running.