A good post on javascript mixin

https://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-javascript-mixins/

Advertisements

config EMS for preparation of BPM server configuration

In the Enterprise Message Service server console, set permissions for the Administrator servers.
In the following commands, replace username and password with the username and password values appropriate for each bus.

Messaging Bus
delete queue >

delete topic >

create user username “Description of the user” password=password

create queue AMX_SV.>

grant queue AMX_SV.> user=username create, delete, modify, send, receive

Notification Bus, which propagates status messages between Administrator, hosts, and nodes

create topic EMSGMS.>

grant topic EMSGMS.> user=username create, modify, subscribe, publish

grant topic $sys.monitor.connection.* user=username subscribe

grant admin user=username view-connection, view-server

create topic AMX_MGMT.>

grant topic AMX_MGMT.> user=username create, modify, subscribe, publish

create queue AMX_MGMT.>

grant queue AMX_MGMT.> user=username create, delete, modify, send, receive

Management Bus, which handles the internal Administrator queues, currently grouped with the Notification Bus

create queue com.tibco.amf.admin.deploymentServerQueue.>

grant queue com.tibco.amf.admin.deploymentServerQueue.> user=username create, delete, send, receive

Common Logging and Payload Bus

grant queue cl_logservice_queue.physical user=username send, receive

grant queue cl_payload_queue.physical user=username send, receive

Monitoring Bus

grant queue amx.governance.stats user=username send, receive

grant queue amx.governance.internal.stats user=username send, receive

cntlm auto start script

#!/bin/sh
# chkconfig: 345 99 9
# description: cntlm auto start-stop script.
#
OWNER=root
if [ ! -f /usr/sbin/cntlm ]
then
echo “cntlm startup: cannot start”
exit
fi

case “$1” in
‘start’)
# Start cntlm
su $OWNER -c “/usr/sbin/cntlm -c /etc/cntlm.conf > /dev/null”
touch /var/lock/subsys/run_cntlm
;;
esac

ems auto start script

#!/bin/sh
# chkconfig: 345 98 10
# description: EMS auto start-stop script.
#
# Set TIBCO_HOME to the directory where the software is installed
#
# Set OWNER to the user id of into which EMS was installed

TIBCO_HOME=/opt/tibco/ems/8.2/
OWNER=bpmadm

if [ ! -f $TIBCO_HOME/bin/tibemsd64.sh ]
then
echo “EMS startup: cannot start”
exit
fi

case “$1” in
‘start’)
# Start EMS
# Remove “&” if you don’t want startup as a background process.
cd $TIBCO_HOME/bin
su $OWNER -c “./tibemsd64” &
touch /var/lock/subsys/ems
;;
‘stop’)
# Stop EMS
cd $TIBCO_HOME/bin
su $OWNER -c “./shutdown.sh”
rm -f /var/lock/subsys/ems
;;
esac

sample oracle auto start script

#!/bin/sh
# chkconfig: 345 98 10
# description: Oracle auto start-stop script.
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.

#ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
#ORA_HOME=/u01/app/oracle/product/11.1.0/db_1
#ORA_HOME=/u01/app/oracle/product/11.2.0/db_1
ORA_HOME=/opt/oracle/product/12.1.0/dbhome_1
ORA_OWNER=oracle
export ORACLE_UNQNAME=orcl

if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo “Oracle startup: cannot start”
exit
fi

case “$1” in
‘start’)
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
# Remove “&” if you don’t want startup as a background process.
su $ORA_OWNER -c “$ORA_HOME/bin/dbstart $ORA_HOME” &
touch /var/lock/subsys/dbora
;;
‘stop’)
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su $ORA_OWNER -c “$ORA_HOME/bin/dbshut $ORA_HOME”
rm -f /var/lock/subsys/dbora
;;
esac

sample auto run script for bpm

#!/bin/sh
# chkconfig: 345 99 9
# description: EMS auto start-stop script.
#
# Set TIBCO_HOME to the location of the BPM config directory
#
# Set OWNER to the user id under which bpm will run

TIBCO_HOME=/home/bpmadm/TIBCO_HOME/tibco/data/tibcohost/Admin-AMX-BPM-AMX-BPM-Server/host/bin
OWNER=bpmadm

if [ ! -f “$TIBCO_HOME/tibcohost” ]
then
echo “BPM startup: cannot start”
exit
fi

case “$1” in
‘start’)
# Start BPM
cd “$TIBCO_HOME”
su $OWNER -c “./tibcohost spawn > /home/bpmadm/logs/start_bpm.log” &
touch /var/lock/subsys/bpm
;;
‘stop’)
# Stop BPM
cd “$TIBCO_HOME”
su $OWNER -c “./tibcohost stop -wait true”
rm -f /var/lock/subsys/bpm
;;
esac