HPOS 4.0 technical note 3
HP Web Services for Output Server 50
Using HP Web Services for Output Server
Sample clients
new javax.net.ssl.HostnameVerifier(){
public boolean verify(String hostname,
javax.net.ssl.SSLSession sslSession) {
//specify the hostname to which we want to connect to
if(hostname.equals("<IP Address>")){
return true; }
return false;
} });
System.setProperty("javax.net.ssl.trustStore", TRUSTSTORE_URL) ;
System.setProperty("javax.net.ssl.trustStorePassword", TRUSTSTORE_PW);
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider() );
Sample clients
The sample clients for .NET and Java are located at $DAZEL_HOME/examples/hpwsfos.
JBoss clustering with Apache load balancer on a
single machine
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