Home > Java, Service Wrapper > Java Service Wrapper and proxy

Java Service Wrapper and proxy

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.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>

  1. 14 June 2010 at 9:13 am

    thanks for sharing

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: