HPOSSOD 1.0 Technical Note

HP Web Services for Output Server 33
Using HP Web Services for Output Server
SSL
Document chunking is transferring a large file in smaller chunks. The client and the server must agree upon the
chunk size of the document. For example, a document of 2 GB can be broken into chunks of 20 KB each. The
server assembles the chunks, creates the original file, and persists it into a unique (named as session ID) user
folder.
NOTE: If the client sends a bulky document, for example of 2 GB, with chunking disabled, the
JBoss server might generate an error. A java.lang.OutOfMemory error in the JBoss
server.log file indicates that a higher heap size is required.
SSL
To configure SSL, perform the following steps:
1. Create keystores, which will hold the certificates using the following link:
http://wiki.jboss.org/wiki/SSLSetup
NOTE: You must have signed certificates to configure SSL, which must be deployed on JBoss
server.
When you have the certificate, you can make changes to the server.xml file located at:
DAZEL_HOME/share/server/default/deploy/jboss-web.deployer
An example of snippet of server.xml file is as follows:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" keyStoreFile="WEB-INF\wsg.keystore"
keyStorePass="welcome1" sslProtocol="TLS" />
NOTE: The value of the keystoreFile file is the path of the certificate and keystorePass
is the password while creating the certificate.
Restart the JBoss server.
2. Import the certificates on the Web service client from the JBoss server using the following utility:
NOTE: Using the utility, you can import the public key on to the Web service client.
/**This is a standard Sun utility.
The class is used to import the Public Key from the server which has the signed certificate installed on JBoss
server. This class will persist the information (public key) in a file system on the client.
By using the file system from the java client you can make a call using SSL.
**/
public class InstallCert {
package com.hp.ws.client.standalone;
import java.io.*;
import java.net.URL;
import java.security.*;