【问题标题】:Websphere 6.1 - Precompile jsp filesWebsphere 6.1 - 预编译 jsp 文件
【发布时间】:2009-07-21 14:59:46
【问题描述】:

在 Websphere (6.1) 中预编译 JSP 文件的最佳方法是什么?

我已经查看了与 JSP 预编译相关的其他问题,但是由于每个 AppServer 都有特定的设置,我想知道专门针对 Websphere 的解决方案。

我在网上找到了一些参考来编辑文件 ibm-web-ext.xmi:

Add the following line before the line
    ...
    </webappext:WebAppExtension>:  
    <jspAttributes
    xmi:id="JSPAttribute_2" name="disableJspRuntimeCompilation" value="true"/>

    # Run the JSP batch compiler.
    WAS_installDir/bin/JspBatchCompiler -ear.path /mytmp/WC_jbweb1.expanded.ear -webmodule.name Stores.war -compileToWebInf true 

我正在寻找一些解决方案来在部署时预编译 JSP,而不是使用批处理编译器。

谢谢。

【问题讨论】:

    标签: jsp websphere performance


    【解决方案1】:

    从控制台,您可以选择此处所述的选项:http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/trun_app_instwiz.html

    Applications > Install New Application > application_path > Show me all installation options and parameters > Next > Next > Precompile JavaServer Pages files > Next > Step: Provide options to compile JSPs.
    

    【讨论】:

      猜你喜欢
      • 2015-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-23
      • 1970-01-01
      • 2017-12-31
      • 1970-01-01
      相关资源
      最近更新 更多