ADF common optimization for production performance

WZh Feb 2014

For ADF project There are some settings  you need in development and debug model, or in Jdev environment. But when you deploy your project to the p reroduction server to make it run, you many need to set them to different values to fit the production requirement or to improve the performance of the server. So you need to design a deploy plan to dynamic change these values when deploying, here is a sample to show common values.

<?xml version=’1.0′ encoding=’UTF-8′?>
<deployment-plan xmlns=”http://xmlns.oracle.com/weblogic/deployment-plan&#8221;
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
xsi:schemaLocation=”http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd”&gt;
<application-name>YourAppNameHere(no .ear extension)</application-name>
<variable-definition>
<variable>
<name>falseValue</name>
<value>false</value>
</variable>
<variable>
<name>trueValue</name>
<value>true</value>
</variable>
<variable>
<name>TwoBacks</name>
<value>3</value>
</variable>
<variable>
<name>adfJavascriptLoggerLevel</name>
<value>NONE</value>
</variable>
<variable>
<name>SessionValueInMins</name>
<value>20</value>
</variable>
</variable-definition>
<module-override>
<module-name>YOURPROJECT.war</module-name>
<module-type>war</module-type>
<module-descriptor external=”false”>
<root-element>web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>falseValue</name>
<xpath>/web-app/context-param/[param-name=”org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT”]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>falseValue</name>
<xpath>/web-app/context-param/[param-name=”org.apache.myfaces.trinidad.resource.DEBUG”]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>falseValue</name>
<xpath>/web-app/context-param/[param-name=”oracle.adf.view.rich.ASSERT_ENABLED”]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>falseValue</name>
<xpath>/web-app/context-param/[param-name=”org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION”]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>falseValue</name>
<xpath>/web-app/context-param/[param-name=”oracle.adf.view.rich.LOGGER_LEVEL”]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>falseValue</name>
<xpath>/web-app/context-param/[param-name=”org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION”]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>TwoBacks</name>
<xpath>/web-app/context-param/[param-name=”org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS”]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>SessionValueInMins</name>
<xpath>/web-app/session-config/session-timeout</xpath>
<operation>replace</operation>
</variable-assignment>
</module-descriptor>
</module-override>
</deployment-plan>


Reference:

http://www.redheap.com/2014/01/configuring-adf-faces-for-development.html

Advertisements