参考: http://cn.forums.oracle.com/forums/thread.jspa?threadID=1104035
Option-A).
Just run ". ./setWLSEnv.sh" and then run the following Program:
================================
Option-B).
Or Place the following JSP Page or Code inside your Application................
=================================
Option-C).
Or Open a Command Window then run ". ./setWLSEnv.sh" then run the following command
OUTPUT: (something like this)
WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967
Use 'weblogic.version -verbose' to get subsystem information
Use 'weblogic.utils.Versions' to get version information for all modules
=================================
Option-D).
从<WL_HOME>/registry.xml 或 <WL_HOME>/logs/log.txt 中取得
Option-E)
Option-A).
Just run ". ./setWLSEnv.sh" and then run the following Program:
public class GetWebLogicVersion
{
public static void main(String ar[])
{
System.out.println("\n\n\t Your WebLogic Version is : "+new weblogic.version().getVersions());
}
}================================
Option-B).
Or Place the following JSP Page or Code inside your Application................
<html>
<body>
WebLogic version: <%= new weblogic.version().getVersions() %>
</body>
</html>=================================
Option-C).
Or Open a Command Window then run ". ./setWLSEnv.sh" then run the following command
java weblogic.versionOUTPUT: (something like this)
WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967
Use 'weblogic.version -verbose' to get subsystem information
Use 'weblogic.utils.Versions' to get version information for all modules
=================================
Option-D).
从<WL_HOME>/registry.xml 或 <WL_HOME>/logs/log.txt 中取得
Option-E)
java -cp Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.version
本文介绍了三种方法来获取WebLogic服务器的版本信息:通过运行特定的Java程序、在JSP页面中插入代码以及手动在命令窗口执行命令。同时提供了详细的步骤和示例代码。
6968

被折叠的 条评论
为什么被折叠?



