Skip to content

Instantly share code, notes, and snippets.

@luizrobertofreitas
Last active December 30, 2015 20:09
Show Gist options
  • Save luizrobertofreitas/7878947 to your computer and use it in GitHub Desktop.
Save luizrobertofreitas/7878947 to your computer and use it in GitHub Desktop.
Deployment Plan para o weblogic. Exemplo para aplicações que não foram desenvolvidas no jdeveloper e são empacotadas como .war. Depois de fazer o deploy da aplicação, clique em update e informe o deployment plan.
<?xml version = '1.0' encoding = 'US-ASCII'?>
<deployment-plan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd"
xmlns="http://xmlns.oracle.com/weblogic/deployment-plan">
<application-name>ApcCustom</application-name>
<variable-definition>
<variable>
<name>param</name>
<value>novo parametro</value>
</variable>
</variable-definition>
<module-override>
<module-name>ApcCustom.war</module-name>
<module-type>war</module-type>
<module-descriptor external="true">
<root-element>web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>param</name>
<xpath>/web-app/context-param/[param-name="param"]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
</module-descriptor>
</module-override>
</deployment-plan>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment