Websphere 6.1 - 预编译jsp文件

时间:2009-07-21 14:59:46

标签: jsp websphere performance

在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,而不是使用批处理编译器。

感谢。

1 个答案:

答案 0 :(得分: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.