OS:windows XP
weblogic923
1、将test应用打包成war包
D:\bea11g\user_projects\domains\cluster_domain\apps\test>C:\j2sdk1.4.2_19\bin\ja
r cvf test.war *
标明清单(manifest)
增加:HelloWeblogic.jsp(读入= 172) (写出= 137)(压缩了 20%)
增加:test.jsp(读入= 85) (写出= 70)(压缩了 17%)
增加:WEB-INF/(读入= 0) (写出= 0)(存储了 0%)
增加:WEB-INF/web.xml(读入= 264) (写出= 183)(压缩了 30%)
增加:WEB-INF/weblogic.xml(读入= 242) (写出= 174)(压缩了 28%)
2、将war包部署到admin server上
3、利用HelloWeblogic.jsp测试jsp页面调用次数
HelloWeblogic.jsp内容:
<HTML><HEAD><TITLE>Hello Weblogic</TITLE></HEAD>
<body>
<H1>You hit the page:
<%!
int hitcount=1;
%>
<%=
hitcount++
%>
times
</H1>
</body></html>
4、在console查看test.war的配置
在日志里可以看到:
####<2010-1-20 上午11时51分17秒 CST> <Info> <ServletContext-/console> <WWW-35A62B972BE> <AdminServer> <[ACTIVE] ExecuteThread: ’1′ for queue: ‘weblogic.kernel.Default (self-tuning)’> <<anonymous>> <> <> <1263959477734> <000000> <JspServlet: param pageCheckSeconds initialized to: -1>
####<2010-1-20 上午11时52分25秒 CST> <Info> <ServletContext-> <WWW-35A62B972BE> <AdminServer> <[ACTIVE] ExecuteThread: ’1′ for queue: ‘weblogic.kernel.Default (self-tuning)’> <<anonymous>> <> <> <1263959545546> <000000> <JspServlet: param pageCheckSeconds initialized to: 1>
由于是用war包的形式部署的,设置无法在console上进行修改
5、修改weblogic.xml
<!DOCTYPE weblogic-web-app
PUBLIC “-//BEA Systems, Inc.//DTD Web Application 8.1//EN”
“http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd”>
<weblogic-web-app>
<context-root>/</context-root>
<session-descriptor>
<session-param>
<param-name>InvalidationIntervalSecs</param-name>
<param-value>120</param-value>
</session-param>
<session-param>
<param-name>TimeoutSecs</param-name>
<param-value>1500</param-value>
</session-param>
</session-descriptor>
<jsp-descriptor>
<jsp-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</jsp-param>
<jsp-param>
<param-name>pageCheckSeconds</param-name>
<param-value>-1</param-value>
</jsp-param>
<jsp-param>
<param-name>compilerSupportsEncoding</param-name>
<param-value>true</param-value>
</jsp-param>
<jsp-param>
<param-name>verbose</param-name>
<param-value>false</param-value>
</jsp-param>
</jsp-descriptor>
<container-descriptor>
<servlet-reload-check-secs>-1</servlet-reload-check-secs>
<resource-reload-check-secs>30</resource-reload-check-secs>
<single-threaded-servlet-pool-size>100</single-threaded-servlet-pool-size>
</container-descriptor>
</weblogic-web-app>