当前位置: 代码迷 >> Web前端 >> 获得Weblogic版本信息
  详细解决方案

获得Weblogic版本信息

热度:137   发布时间:2012-09-25 09:55:59.0
取得Weblogic版本信息
参考: http://cn.forums.oracle.com/forums/thread.jspa?threadID=1104035

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.version


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 中取得
  相关解决方案