# Make a subscription and then publish a few messages to a matching topic
r="`pwd`/.."
cd $r
#npm link
cd $r/samples

topic="dev/JSTopic"
qmgr="QM1"

node amqssub.js $topic $qmgr &
sleep 0.5s
for i in 0 1 2 3 4
do
  node amqspub.js $topic $qmgr  >/dev/null 
done

wait


