2016년 6월 3일 금요일

[EBS] JSP recompile mode 설정 (12.1)

EBS R12는 Runtime 시 성능개선을 위해 기본적으로 JSP 파일에 대해 Deploy 후 compile을 해주어야 합니다.
만약 runtime 시 recomplie 하기를 원한다면 다음과 같이 설정을 변경하실 수 있습니다.


다음의 파일 수정
$INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml


변경 전
  <init-param>
     <param-name>main_mode</param-name>
     <param-value>justrum</param-value>
  </init-param>


변경 후
  <init-param>
     <param-name>main_mode</param-name>
     <param-value>recompile</param-value>
  </init-param>


작업 후 oacore를 재시작하면 설정이 적용됩니다.


위의 절차는 AutoConfig를 수행하면 원복이 됩니다. 그래서 아래의 문서와 같이 OAM에서 설정하면 AutoConfig 수행 시에도 변경되지 않습니다.
이 방법을 추천합니다.



How to Enable Automatic Compilation of JSP pages in R12 Environment [ID 458338.1]


Goal


In Release 11i, the deployment of a (custom) JSP was done as follows:
  1. Copy the file (for example: custom.jsp) to the web tier in the $OA_HTML directory.
  2. Request it in the browser like URL> http://<myhost.mydomain>:<port>/OA_HTML/custom.jsp.


The result on the web tier is that:
  • The custom.jsp was compiled
  • Output files of the compilation _custom.class (and _custom.java) are saved under the _pages directory
  • The custom.jsp page is shown in the browser


Performing the same steps in Release 12 environment just shows a blank screen and no compilation of the custom.jsp is done. The steps in this Note explain how the same behavior as in Release 11i can be achieved in Release 12.


Solution


In Release 12 the (automatic) compilation of a JSP is disabled and, at runtime, only the pre-compiled JSP's are picked up. Since this requires fewer checks to be done, the performance is improved and therefore this is the recommended and default setting for a Production environment where JSP's will only be replaced occasionally.


In cases where development activities are done and JSP pages are changing often this default setting makes things more complicated. Each time a JSP is deployed a manual compilation using the ojspCompile.pl is needed and the OC4J running the oacore needs a restart to pick up the changes. This will also affect other people working on the same environment.


Follow the steps below to:
  • Automatically have the JSP recompiled when the JSP is changed (at least the time stamp)
  • See the new JSP without the need to restart the OC4J running oacore


The objective is to change the setting for main_mode from justrun to recompile in
$INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml


This can be achieved by performing the following:
  • Login into E-Business suite and select System Administrator responsibility
  • Select function AutoConfig (under Oracle Applications Manager) (*)
  • For each web tier server perform the following:
    • Click on pencil icon under Edit Parameters
    • Select tab System
    • Expand section jtff_server
    • Change value for the entry s_jsp_main_mode from justrun to recompile
    • Confirm the change by clicking Save button
  • Run AutoConfig to propagate the changes to the configuration files
  • Verify that the $INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml  has the following:
<init-param>
        <param-name>main_mode</param-name>
        <param-value>recompile</param-value>
</init-param>
  • Restart the web tier services
  • Request a JSP in the browser which is compiled. See that a new _<jspname>.class is created in _pages
  • Make a change in the JSP file
  • Request it again in the browser. See that _<jspname>.class is 'refreshed' in _pages and the change is seen in the browser

댓글 없음:

댓글 쓰기