HPOSSOD 1.0 Technical Note

HP Web Services for Output Server 60
Using HP Web Services for Output Server
JBoss clustering with Apache load balancer
Deny from all
Allow from 127.0.0.1
</Location>
5. In the APACHE_HOME/conf directory, create workers.properties and populate it as follows:
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
# worker.list=loadbalancer,status
# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=node1.mydomain.com
worker.node1.type=ajp13
worker.node1.lbfactor=1
# worker.node1.connection_pool_size=10 (1)
# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.port=8009
worker.node2.host= node2.mydomain.com
worker.node2.type=ajp13
worker.node2.lbfactor=1
# worker.node1.connection_pool_size=10 (1)
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
# Status worker for managing load balancer
worker.status.type=status
6. In the APACHE_HOME/conf directory, create uriworkermap.properties and populate it as follows:
# Mount the Servlet context to the ajp13 worker
/HPOSGateway=loadbalancer
/HPOSGateway/*=loadbalancer
/HPOSGateway=loadbalancer
/HPOSGateway/*=loadbalancer
7. Restart the Apache server.
8. Edit the JBoss_HOME/server/node1/deploy/jboss-web.deployer/server.xml (replace /
with your own node name) as follows:
Locate the <Engine….> element and add an attribute jvmRoute: