HPOS 4.0 technical note 3
HP Web Services for Output Server 53
Using HP Web Services for Output Server
JBoss clustering with Apache load balancer on multiple machines
11. Edit the JBoss_HOME/share/jboss/server/node1/conf/jboss-service.xml file by locating
the ServiceBindingManager and add the value ${jboss.server.base.dir}/portBindings.xml to
the attribute store URL.
12. Restart the JBoss application server
13. You can use the HP Web Services for Output Server landing page at http://localhost/HPOSGateway
.
JBoss clustering with Apache load balancer on
multiple machines
You can perform JBoss clustering with Apache load balancer on multiple nodes (alteast one node on each machine).
The following section explains the JBoss clustering on 2 machines with a single node on each of the machines.
The HP Output Server setup for JBoss clustering with Apache load balancer with a node on each of the 2
machines is as follows:
• Install HP Output Server with MySQL as the database server on machine 1.
NOTE: For more information on installing HP Output Server, refer to the HP Output Server
Installation and Configuration Guide.
• Choose the Join a domain option on machine 2 while installing HP Output Server and use the MySQL database
server of machine 1 during configuration.
• Stop JBoss server on both machine 1 and machine 2.
To perform JBoss clustering with Apache load balancer, follow these steps:
1. Download the latest Apache2 package from http://httpd.apache.org/download.cgi
and install it.
2. Download the latest available package from mod_jk 1.2.x from
http://httpd.apache.org/download.cgi. Rename the lib mod_jk.so and copy it to
APACHE_HOME/modules directory.
3. Add the following line to the APACHE_HOME/conf/httpd.conf directory:
# Include mod_jk configuration file
Include conf/mod-jk.conf
4. Under APACHE_HOME/conf, create the mod-jk.conf file and populate it as follows:
# Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicates to send SSK KEY SIZE