Archive

Archive for the ‘Service Wrapper’ Category

Java Service Wrapper and proxy

28 May 2010 1 comment

Ever wondered how you can set the service wrapper to go through the proxy? You have to use the wrapper.conf file and define the wrapper.java.additional.<n> property as explained here. You have to define a line of wrapper.java.addditional.<n> for each property you need to pass to the JVM.

wrapper.java.additional.1=-Dhttp.proxySet=true
wrapper.java.additional.2=-Dhttp.proxyHost=<the proxy host>
wrapper.java.additional.3=-Dhttp.proxyPort=<the proxy port>
wrapper.java.additional.4=-Dhttp.proxyUser=<the proxy username>
wrapper.java.additional.5=-Dhttp.proxyPassword=<the proxy password>