WebLogic Application Server
Table of Contents
1. WebLogic 简介
Oracle WebLogic Server is a scalable, enterprise-ready Java Platform, Enterprise Edition (Java EE) application server.
参考:
Oracle Fusion Middleware 12c 12.1.3: http://docs.oracle.com/middleware/1213/wls/index.html
1.1. WebLogic 安装
下面以 WebLogic Server 12c Release 3 (12.1.3)以为例,介绍其安装过程。
安装过程比较简单,用下面命令启动后,在图形界面中依次点击“下一步”即可。
$ java -jar fmw_12.1.3.0.0_wls.jar
说明:WebLogic 12.1.3 安装程序需要 java jdk 7 及以上版本(jre 也不行,jdk 6 也不行)。
参考:http://docs.oracle.com/middleware/1213/core/WLSIG/install_gui.htm#WLSIG125
2. WebLogic Domain
An Oracle WebLogic Server domain is a logically related group of Oracle WebLogic Server resources. Domains include a special Oracle WebLogic Server instance called the Administration Server, which is the central point from which you configure and manage all resources in the domain. Usually, you configure a domain to include additional Oracle WebLogic Server instances called Managed Servers.
A Managed Server is a WebLogic Server instance that runs deployed applications. It refers to the Administration Server for all of its configuration and deployment information. Usually, you use Managed Servers to run applications in a production environment.
Figure 1: WebLogic Domain Structure
可以简单地认为 WebLogic 中 Domain 是逻辑管理单元,它由 Administration Server 和 Managed Servers 组成。WebLogic 应用服务器的启动/停止以 Domain 为单位进行管理。
参考:
https://docs.oracle.com/middleware/1213/wls/INTRO/domains.htm
https://docs.oracle.com/middleware/1213/wls/WLDCW/intro.htm
2.1. 创建 Domain
可以使用 Configuration Wizard 创建 Domain。用下面命令可以启动 Configuration Wizard:
$ ./wlserver/common/bin/config.sh
在创建 Domain 过程时,需要创建 Administrator 的用户名和密码(如 weblogic/admin123)。
2.2. 使用 Administration Console 管理 Domain
The WebLogic Server Administration Console is a browser-based Web application that allows you to configure and monitor your WebLogic Server domain, server instances, and running applications and their associated resources.
首先,先要启动 Administration Server,如:
$ ./user_projects/domains/my_domain/bin/startWebLogic.sh &
然后,用浏览器打开 Administration Console 的 URL,如 http://xxx.yyy.com:7001/console
Figure 2: WebLogic Administration Console
利用 Administration Console,可以:
- Configure, start, and stop WebLogic Server instances
- Configure WebLogic Server clusters
- Configure WebLogic Server services, such as database connectivity (JDBC) and messaging (JMS)
- Configure security parameters, including managing users, groups, and roles
- Configure and deploy your applications
- Monitor server and application performance
- View server and domain log files
- View application deployment descriptors
- Edit selected run-time application deployment descriptor elements
- Control (start, stop, and restart) managed Coherence servers
- Create and configure Coherence clusters
参考:
Oracle WebLogic Server Administration Console Online Help 12c (12.1.3): https://docs.oracle.com/middleware/1213/wls/WLACH/core/index.html