Académique Documents
Professionnel Documents
Culture Documents
This is a complete Weblogic tutorial. The tutorials will teach you Weblogic application server
from basic to an expert level.
Here you will learn Weblogic Administration tasks on both Windows (32-bit) and Linux(32-
bit)operating systems.
Definition:
In September 1995, Paul Ambrose and Carl Resnikoff co-founded WebLogic, Inc. After which
BEA Systems took over WebLogic, Inc in 1998 and named it BEA Weblogic. Oracle aquired
BEA in 2008 and named it Oracle Weblogic. Today, Weblogic Application server is one of the
most popular application server in the market. Oracle weblogic is a server software application
that runs on a middle tier. That is, between the database and browser-based thin clients.
Supported Versions:
Downloads:
You need to accept the license agreement before downloading the software.
Select the version "Oracle WebLogic Server 11gR1 (10.3.3) + Coherence - Package
Installer(standalone installer comes with the jdk)" Under Linux(32-bit JVM) column. Select
"x86: 705 MB File1".
Installation:
1. Graphical Mode.
2. Console Mode.
3. Silent Mode.
In Console mode, a command prompt is available to do the configuration, where a user will
input the values.
***** In Silent mode, all the details will be in an xml file and configuration is done on the basis
of the values in the xml file.Silent mode is best approach if you are trying to automate the
installation process.
Extracting 0%.....................................100%
3. Welcome prompt
Welcome
This installer will guide you through the installation of WebLogic 10.3.3.0.
Type "Next" or enter to proceed to the next prompt.
If you want to change data entered previously, type "Previous".
You may quit the installer at any time by typing "Exit".
------------------------------------------
------------------------------------------
------------------------------------------
------------------------------------------
1|Email:[]
2|My Oracle Support Password:[]
3|Receive Security Update:[Yes]
------------------------------------------
Enter [Yes][No]? No
<------ Oracle Installer - WebLogic 10.3.3.0 -------->
------------------------------------------
------------------------------------------
1|Email:[]
2|My Oracle Support Password:[]
3|Receive Security Update:[No]
------------------------------------------
2|Custom
| Choose software products and components to install and perform optional
configuration.
------------------------------------------
------------------------------------------
------------------------------------------
Middleware Home Directory: [/usr/local/weblogic103]
---------------------------------------------------------
Installing files..
Creating Domains...
8. Installation Completed
Installation Complete
Make sure you download and install the JDK 1.6 version for 64 bit operating system. As it is
required to execute the weblogic generic installer.
Installation:
2. Create a silent.xml file. The installer will read the configuration information from the
silent.xml file, so user does not have to input the values during the silent installation process.
Below is the sample silent.xml file, which you can use for the weblogic platform installation.
You can change the values according to your environment.
3. Now, run the command as follows to install the weblogic on 64 bit Linux operating system.
That`s it the silent mode installation of weblogic platform is completed successfully on 64-bit
Linux Operating System.
Downloads:
a. Typical --> Install the following products and components: Weblogic Server || Oracle
Coherence || Oracle Enterprise pack for Eclipse.
b. Custom --> Choose software products and components to install and perform optional
configuration.
For this tutorial, I have selected the Custom type of configuration, as shown in the figure below.
Then, Click NEXT.
6. Choose products and components - Select All, then Click NEXT.
7. Select JDK --> You can either select both "SUN JDK" and "Jrockit". for this tutorial, I have
selected Jrockit only. Then, Click NEXT.
8. Choose product installation directory. Click NEXT.
9. Install windows service(Select "NO" - we will configure it later). Click NEXT.
10. Validate the installation summary. Click NEXT.
11. Congratulation, Installation is completed successfully. Click Done.
What is a weblogic server domain?
A domain is the basic administration unit for Weblogic Server instances. A domain consists of an
Administration Server and Managed application servers and resources. The main configuration
file in the domain is config.xml, which is in the domain directory(where you install your
weblogic server domain) under config directory.
You can use Administration Server to do the configuration tasks. A web based console comes
with the domain installation, where an administrator can login and perform the administration
tasks.
Weblogic domain can have multiple servers in a cluster or multiple clusters. A domain can have
an Administration Server which can act as an Administration Server and managed server. This
architecture is mostly used by the developers in developing and deploying applications in there
local environments.
Production and Development Modes
1.Development Mode
2.Production Mode
1. Development Mode: In the development mode of configuration, Weblogic server domain has
minimum security and is used for the development of application purposes. In this mode, you
can also auto-deploy the application.
2. Productions Mode: This is the final mode of the domain configuration, where you deploy the
application which will be directly used by the customers. This is a very important environment,
with maximum security.
Now, as we got a general idea on what a weblogic server domain is, we will now configure the
weblogic server domain on Linux operating system.
./config.sh
Unable to instantiate GUI, defaulting to console mode.
Welcome:
-------------
Choose between creating and extending a domain. Based on your selection, the
Configuration Wizard guides you through the steps to generate a new or extend
an
existing domain.
-------------------------
Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a list
of
existing domain templates.
-----------------------------------
Available Templates
|_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.3]x
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0
[wlserver_10.3] [2]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0
[wlserver_10.3] [3]
-----------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
-----------------------------
| Name | Value |
_|________|____________|
1| *Name: | devdomain |
-----------------------------------------------------------
"Target Location" = [Enter new value or use default
"/usr/local/weblogic103/user_projects/domains"]
Create a user to be assigned to the Administrator role. This user is the default administrator used
to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
------------------------------------------------------------
| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
------------------------------------------------------------
| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ********** |
3| *Confirm user password: | ********** |
4| Description: | This user is the default administrator. |
--------------------------------
->1|Development Mode
2|Production Mode
-------------------------
9. Select Optional selection. We will just configure the Administration Server. We will configure
other weblogic server resources from the weblogic administration console.
------------------------------------
-------------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration
Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| *Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
-------------------------------------------
| Name | Value |
_|__________________ |_____________|
1| *Name: | AdminServer |
2| *Listen address: | localhost |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Creating Domain...
Create a plain text file called boot.properties with the following content:
username=weblogic
password=weblogic01
/usr/local/weblogic103/user_projects/domains/devdomain/servers/managedserver1/security
Name Machine-managedserver1
Machine OS Unix
5.Click Ok
Weblogic Control
In this section, we are going to learn on how to start/stop/resume weblogic server using the
weblogic administration console and using scripts.
Believe it or not, but weblogic control is the most common activity for a weblogic server
administrator.
1. Starting and Stopping the Weblogic Administration Server and Weblogic Managed Server
using the scripts provided during with the domain creation.
3. Starting and Stopping the Weblogic Administration Server and Weblogic Managed Server
using custom scripts (modified version of default scripts).
In other words, For sending the messages between the different Java clients the Java Message
Service(JMS) uses a Java Message Oriented Middleware API.
Here is the list of the major components of the WebLogic JMS Server architecture.
JMS Server --> Hosts the modules and associated persistent store that reside on a WebLogic
Server instance.
JMS modules --> Contains the resource configuration (such as queues, topics, and connections
factories)
JNDI (Java Naming and Directory Interface) --> JNDI provides the resource lookup facility.
Persistent Store --> File or JDBC store to store the persistent messages.
In coming lessons, we are going to learn on how to configure JMS resources in weblogic server
environment.
Weblogic JDBC
In this tutorial, we are going to learn about JDBC (Java Database Connectivity) with the
weblogic server. Before we proceed with the tutorial, Let`s go through some JDBC definitions.
In weblogic Server container, you can configure the datasources to connect to the databases.
Each datasource created in a domain contains connection pools which consists of database
connections, which are created during the initial startup of the server.