First, Introduction
WebLogic is a application server produced by Oracle Corporation of America, specifically a middleware based on Java EE Architecture, WebLogic for developing, integrating, deploying, and managing large distributed Web applications, Java Application Server for network applications and database applications. Introduce Java dynamic capabilities and the security of Java Enterprise standards into the development, integration, deployment, and management of large network applications.
WebLogic is one of the main products of the US Oracle, the acquisition BEA. is one of the main Java application Server Software (application server) in the commercial market, is the world's first successful commercial application server, has been launched to 12c (12.1.3) version. This product also extends the middleware for enterprises such as WebLogic portal,weblogic integration (but now Oracle is replacing these WebLogic server enterprise packages mainly with fusion middleware integration middleware) , and Oepe (Oracle Enterprise Pack for Eclipse) development tools. (from Baidu Encyclopedia)
Official document Address: http://docs.oracle.com/en/middleware/index.html Second, advantages
WebLogic Server has the many features and advantages you need to develop and deploy a mission-critical e-business Web application system. Standard
Comprehensive support for a wide range of standards in the industry, including EJB, JSP, Servlet, JMS, JDBC, XML (a subset of standard generic markup languages), and WML, making Web application systems easier to implement and protecting investments, It also makes it easier to develop standards-based solutions. Scalability
WebLogic Server is renowned for its highly scalable architecture, including sharing of client connections, resource pooling, and clustering of Dynamic Web pages and EJB components. Rapid development of
leveraging EJB and JSP support and WebLogic Server's servlet component architecture enables faster Time-to-market. These open standards, when combined with Webgain Studio, simplify development and develop the skills available to rapidly deploy applications. third, and other server differences tomcat (free)
Tomcat can only be counted as Web Container and is an officially specified Jsp&servlet container. Only implements the Jsp/servlet specification, does not support the EJB (the mishap AH)! But Tomcat with JBoss and Apache can implement Java EE application Server features
generally consider the architecture of stucts, such as Tomcat, but if you consider EJBS , WebLogic is a better choice. JBoss (free)
JBoss is a container and server that manages EJBS, and supports the specifications of EJB 1.1, EJB 2.0, and EJB3. However, the JBoss Core service does not include a Web container that supports servlet/jsp, which is typically used with Tomcat or jetty bindings. WebLogic (charge)
WebLogic is the Java EE Application Server (application server), including EJB, JSP,SERVLET,JMS, and so on, versatile. Is the first in the Commercial software container (JSP, servlet, EJB, etc.), and provide other tools such as Java editing, is a comprehensive development and operating environment. Charge Four, Windows download installation
Address:
Http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html?ssSourceSiteId=ocomen
Version Description:
Zip.. Green version, decompression can be used to run.
Generic ... After downloading is a jar package with the installation Wizard
The rest is the system with the development environment of the file, larger.
Here we download the second, installation file with the wizard.
When the download is complete, the file is an executable jar file, so we go to the/bin directory under the system JDK and execute it in the command window
Java-jar downloaded WebLogic files
You can start the Installation Wizard to install, omitting the installation steps.
When Setup completes, start Webligic to see the following information:
You can view the WebLogic management platform in the browser
Http://localhost:7001/console (7001 is the default port, same as tomcat8080)
The first start of the page is as follows, the system will be related configuration, and so on will be able to see the management platform
Five, install under Linux
Download the Linux version of the JDK installation and set environment variables to refer to the installation commands for each Linux distribution.
Here we create a new user to install WebLogic
# Groupadd WebLogic //Create Group
# useradd-g WebLogic weblogic//Create user and specify group
# passwd WebLogic//Change Password
# Su-weblogi C Switch User
Install the same as Windows, using Java to execute the jar file.
Start the Setup Wizard installation steps as you would under Windows.
At this stage we choose the production environment, unlike previous windows, we can choose the development version of Windows.
After the completion of the following figure:
Let's start the WebLogic in the WebLogic installation directory.
Because it is a production environment, you are prompted to enter a password when you start the log
Enter the password we set and finally see the startup successful.
Six, WebLogic configuration 6.1 in production mode start and cancel password input
Go into the WebLogic installation directory and go under User_projects/domains/base_domain/servers/adminserver
The new folder is named: Security
To enter the folder, create a new file boot.properties, which reads as follows:
Username= login username
password= Password
Starting again will not let you enter the username password. 6.2 Production mode and development mode switch
In a production environment, enter the root directory of the current domain.
Config/config.xml can be configured to switch from a production environment to a development environment
Change true to False, which is to change development mode in production mode and not see this configuration item in development mode
6.3 Adding multiple domains
Into the D:\Oracle\Middleware\Oracle_Home\wlserver\common\bin.
Run the Config.cmd Linux run config.sh the Bootable Configuration Wizard, you can add a new domain. 6.4 Add multiple servers
Enter the WebLogic Management page, click to enter the Server Management page
Click New, enter server name and port
After deploying the application target Select the new server, enter the following command to start the server
Startmanagedweblogic.cmd managed_server_name Admin_url (Windows)
Such as:
C:\Oracle\Middleware\user_projects\domains\mydomain\bin\startManagedWebLogic.cmd Mymanagedserver http://AdminHost:7001
Managed_server_name will specify the name of the managed service, Admin_url specify the Management Service listener address (host, IP address, or DNS name), port. If the management service and the managed service are together, you can omit Admin_url 6.5 to modify the WebLogic port
Enter D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\config
Edit Config.xml
6.6 Modify WebLogic JDK location
Description
1.d:\bea for the author WebLogic installation directory
2.d:\bea\user_projects\domains\base_domain Create a directory for the author domain
Method 1:
Modify File: D:\bea\wlserver_10.3\common\bin\commEnv.cmd
Modify the following line:
@rem Reset JAVA Home
Set java_home=d:\bea\jdk160_05
Method 2:
Modify File: D:\bea\user_projects\domains\base_domain\bin\setDomainEnv.cmd
In the following line
Call "%wl_home%\common\bin\commenv.cmd"
Add back
Set java_home=d:\bea\jdk160_05
Method 3:
Modify File: D:\bea\user_projects\domains\base_domain\bin\startWebLogic.cmd
In the following line
%java_home%\bin\java%java_vm%-version
Front Increase:
Set java_home=d:\bea\jdk160_05
Method 4:
Modify the Setdomainenv.cmd files in domain to modify the sun_java_home and Java_home to the installed JDK path.
Set Sun_java_home=c:\program files\java\jdk1.6.0_27
If "%java_vendor%" = = "Oracle" (
Set Java_home= a_java_home%
) Else (
If "%java_vendor%" = = "Sun" (
Set java_home=%sun_java_home%
) Else (
Set Java_vendor=sun
Set Java_home=c:\program files\java\jdk1.6.0_27
)
Seven, WebLogic application development 7.1, the environment constructs
Download Eclipse and Oracle Eclipse development tools
Eclipse Download address See official website
Oracle Eclipse development tool download Address:
Http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html
You can also select the following three files when downloading WebLogic, and the entire environment development tool for the corresponding system includes eclipse
Alternatively, you can open a page of Eclipse's install new software, help-> Install new Software.
Enter Oepe at the name (you can fill it out, just mark what the URL is),
Location input Http://download.oracle.com/otn_software/oepe/12.1.3.3.1/luna/repository (after the version required JDK8 support)
My eclipse version is Luna
Can be http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html at this address
Locate the appropriate plugin address:
Click OK.
Click to open Tools down menu, select Oracle Weblogic Server Tools, and tap next.
I installed the following plugins:
7.2. Add WebLogic Server
Open the Add Server window, where we expand Oracle
Select the appropriate version of the WebLogic server, you can set the WebLogic server name, the next step;
WebLogic Home Selects the Wlserver directory to the local WebLogic,
Java home automatically chooses the location of the JDK, or it can choose it yourself. Next
Select a path to the local WebLogic domain
The installation results are as follows.
7.3, Deployment
Enter the WebLogic backend management platform, go to the Deployment page, and deploy the project.