Set up proxy using ANT
Hi,
I configured the proxy server settings in opmn.xml as follows:
1. Run the following command:
prompt> Oracle_Home/opmn/bin/opmnctl stopall
2. To set the proxy server for BPEL, modify the following lines in the SOA_Oracle_Home/bpel/bin/obsetenv.sh file:
PROXY_SET="true"
...
if [ "${PROXY_SET}" = "true" ]
then
OB_JAVA_PROPERTIES="-Dhttp.proxySet=true -Dhttp.proxyHost=proxy_server_
hostname -Dhttp.proxyPort=proxy_server_port -Dhttp.nonProxyHosts=localhost|non_
proxy_host|other_non_proxy_hosts"
3. To set the proxy server for OC4J, modify the following lines for the OC4J module in the Oracle_Home/opmn/config/opmn.xml file:
<process-type id="oc4j_instance_name" module-id="OC4J" status="enabled"> <module-data> <category id="start-parameters"> <data id="java-options" value= ... -Dhttp.proxySet=true -Dhttp.proxyHost=proxy_server_hostname -Dhttp.proxyPort=proxy_server_port -Dhttp.nonProxyHosts=localhost|non_proxy_host|other_non_proxy_hosts"/> </category>
4. Restart the OC4J application server:
prompt> Oracle_Home/opmn/bin/opmnctl startall
This works when I deploy from JDeveloper. Now I need to create the jar file with ANT to deploy to another server. How can I set up proxy settings with ANT (build.properties, build.xml?)
Regards,
Lara Fernandes.