Using ant to deploy to OC4J

I found the following usefull information in the OTN forums. You can use this example to deploy a war archive to a remote OC4J server in an Ant build file. I noticed that oc4j_remote_deploy.jar is not part of the jdeveloper 9.0.3 installation i have here, and it’s also not part of the standalone oc4j installation i’m using.

<java jar="${jdev.dir}/jdev/lib/oc4j_remote_deploy.jar" fork="yes">
  <jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient" />
  <arg value="http://remote_server:1810/Oc4jDcmServletAPI/" />
  <arg value="username" />
  <arg value="password" />
  <arg value="redeploy" />
  <arg value="E:\ora9ias" />
  <arg value="${build.dir}/${name}.ear" />
  <arg value="${name}" />
  <arg value="OC4J_PORTAL" />
</java>
blog comments powered by Disqus