Monday, June 30, 2014
Friday, June 27, 2014
Configure Servlets in web.xml ADF (Read the AMPool values on the server using a servlet dynamically)
Access it by going to http://<application-context-root>/faces/AMPoolInfo
- The below Servlet displays the AM pool current instance parameters of an application running on the server
package views; import javax.servlet.http.HttpServlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.*; import javax.servlet.http.*; import java.util.Enumeration; import java.util.Iterator; import java.util.Map; import oracle.jbo.common.ampool.ApplicationPool; import oracle.jbo.common.ampool.PoolMgr; public class AMPoolStatisticsServlet extends HttpServlet { private static final String CONTENT_TYPE = "text/html; charset=windows-1252"; public void init(ServletConfig config) throws ServletException { super.init(config); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head><title>AM Pool Statistics</title></head>"); out.println("<body>"); PoolMgr poolMgr = PoolMgr.getInstance(); String poolname = request.getParameter("poolname"); if (poolname == null || poolname.equals("")) { Enumeration keys = poolMgr.getResourcePoolKeys(); if (keys != null) { out.println("<h3>List of Active Application Module Pools</h3>"); out.println("<ul>"); while (keys.hasMoreElements()) { String s = (String)keys.nextElement(); out.println("<li><code><a href='AMPoolInfo?poolname=" + s + "'>" + s + "</a></code></li>"); } out.println("</ul>"); } else { out.println("No pools."); } } else { out.println("<h3>Pool Statistics for Pool '" + poolname + "'</h3>"); out.println("<a href='AMPoolInfo'>Back to Pool List</a>"); out.println("<hr><blockquote><pre>"); ApplicationPool pool = (ApplicationPool)poolMgr.getResourcePool(poolname); out.println("<BR><H1>Avilable Pool count </h1>" +pool.getAvailableInstanceCount()); out.println("<BR><H1>Environment Parameter</H1>"); Iterator iterator = pool.getEnvironment().entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry) iterator.next(); out.println("<H1> "+ entry.getKey().toString() +" : " + entry.getValue().toString() +" </H1>"); } pool.dumpPoolStatistics(new PrintWriter(out)); out.println("</pre></blockquote>"); } out.println("</body></html>"); out.close(); } }
Reference : ADF E'x'plorer
Thursday, March 13, 2014
Wednesday, March 5, 2014
Performance tuning ADF applications
http://technology.amis.nl/2014/01/17/adf-performance-tuning-improve-your-oracle-adf-app-response-time-by-as-much-as-70-percent/
https://andrejusb.blogspot.com/2018/07/adf-postback-payload-size-optimization.html
<context-param>
<param-name>oracle.adf.view.rich.POSTBACK_PAYLOAD_TYPE</param-name>
<param-value>dirty</param-value>
</context-param>
- Reference Pool Size set to Number more than concurrent users
- if no. of concurrent users are 300 set Reference Pool Size to 400
Make sure if ReadWrite View Object is only used to insert Rows ->
set the Tuning Properties of the View Object to ---->
https://andrejusb.blogspot.com/2018/07/adf-postback-payload-size-optimization.html
<context-param>
<param-name>oracle.adf.view.rich.POSTBACK_PAYLOAD_TYPE</param-name>
<param-value>dirty</param-value>
</context-param>
Labels:
ADF,
AppModule,
JDeveloper 12c,
Performance Tuning ADF,
Service Module,
tuning
Monday, March 3, 2014
ADF Command Link Issue in a table with IE 8 or 9 using JDev 11.1.1.5
set the content delivery property to IMMEDIATE for the table
http://lalithavarigaddi.wordpress.com/2013/10/15/issue-with-command-link-in-adf-table-in-jdev-11-1-1-5-ie9/
http://lalithavarigaddi.wordpress.com/2013/10/15/issue-with-command-link-in-adf-table-in-jdev-11-1-1-5-ie9/
Wednesday, February 26, 2014
Reset Input Text Field ADF
RichInputText input = (RichInputText)
JSFUtils.findComponentInRoot(id);
input.setSubmittedValue(null);
input.resetValue(); // input.setValue("") doesn't work here
AdfFacesContext.getCurrentInstance().addPartialTarget(input);
Thursday, February 13, 2014
af:Read Only Table ADF
When you use a Read Only View Object to be displayed as a Table, Use it as a Read Only Table(instead of Table) to avoid issues and display correct data
Subscribe to:
Posts (Atom)


