【发布时间】: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