Weblogic Basic

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 45

Weblogic Administration

Rakesh Kumar
R&D-ALB-RDM-FOR-QDS-BCS

2015 Amadeus IT Group SA

Day 1

Agenda
Click icon to add picture

_ Introduction
_ Types of servers
_ Difference b/w webservers and

2015 Amadeus IT Group SA

Application servers
_ Weblogic server overview
_ JDK Installation
_ Weblogic server installation
_ Weblogic Domain creation

1
2
3
4
5
6
7
8

Page 2

Types of server
running certain software applications
_ Communications server, carrier-grade
computing platform for communications
networks
_ Compute server, a server intended for
intensive (esp. scientific) computations
_ Database server, provides database services
to other computer programs or computers
_ Fax server, provides fax services for clients
_ File server, provides remote access to files
_ Game server, a server that video game
clients connect to in order to play online
together
_ Print server, provides printer services
_ Proxy server, acts as an intermediary for
requests from clients seeking resources from
other servers
_ Web server, a server that HTTP clients
connect to in order to send commands and
receive responses along with data contents
Page 3

2015 Amadeus IT Group SA

_ Application server, a server dedicated to

Difference b/w webserver and Application server


can also serve HTTP Content but is not limited to just HTTP.
It can be provided other protocol support such as RMI/RPC.
_ Web Server is mostly designed to serve static content,
though most Web Servers have plugins to support scripting
languages like Perl, PHP, ASP, JSP etc. through which these
servers can generate dynamic HTTP content.
_ Most of the application servers have Web Server as integral
part of them, that means App Server can do whatever Web
Server is capable of. Additionally App Server have
components and features to support Application level
services such as Connection Pooling, Object Pooling,
Transaction Support, Messaging services etc.
_ As web servers are well suited for static content and app
servers for dynamic content, most of the production
environments have web server acting as reverse proxy to
app server. That means while servicing a page request, static
contents (such as images/Static HTML) are served by web
server that interprets the request. Using some kind of
filtering technique (mostly extension of requested resource)
web server identifies dynamic content request and
transparently forwards to app server
Example of such configuration is Apache Tomcat HTTP Server and Oracle
(formerly BEA) WebLogic Server. Apache Tomcat HTTP Server is Web
Server and Oracle WebLogic is Application Server.

Page 4

2015 Amadeus IT Group SA

_ Web Server is designed to serve HTTP Content. App Server

Application servers widely used in IT


_ Redhat Jboss
_ IBM Websphere
_ Oracle Weblogic
_ Oracle Webcenter
_ Apache tomcat

2015 Amadeus IT Group SA

many more

Page 5

Weblogic server
_ WebLogic is a server software application that runs on a middle tier,

2015 Amadeus IT Group SA

between back-end databases and related applications and browserbased thin clients. WebLogic is a leading e-commerce online
transaction processing (OLTP) platform, developed to connect users in
a distributed computing environment and to facilitate the integration
of mainframe applications with distributed corporate data and
applications.

Page 6

Weblogic Admin responsibilities


_
_
_
_
_
_
_
_
_
_

Applications, Performance Tuning and Maintenance


Create, configure and tune weblogic
domains/applications for performance
Code deployments/promotions, performance monitoring
and performance tuning
Up gradation of WebLogic servers in development,
testing and production environment and applying patch
and service packs
Cluster Configuration Single Cluster, Multiple Clusters
and Deployment over clusters
Server Performance Tuning - Thread Dump Analysis,
Core Dump Analysis when Server crashed unevenly
JMS Configurations JMS Server, Connection Factory,
Foreign JMS server, Message Bridge, Topic/Queue,
Distributed destinations
Creating security roles, group policy, user authentication,
auditing and authorization
Node Manager Configuration remote managed server
start and stop. SSL communication between admin
server and node manager
Developing WLST scripts and auto deployment process
Tuning JVM heap size to maximize the number of clients
accessing the applications.

Page 7

2015 Amadeus IT Group SA

_ Troubleshooting, Load Balancing, Clustering, Deploying

2015 Amadeus IT Group SA

Weblogic server

Page 8

Artifacts
_ JAR is java archive file. It contain all class file,image,sound and other files which will needed in whole
application. Computer users can create or extract JAR files using the jar command that comes with
the JDK. They can also use zip tools. The Java Archive (JAR) file format enables you to bundle
multiple files into a single archive file. jar was designed mainly to facilitate the packaging of java
applets or applications into a single archive.

_ WAR -Web Archive (WAR) file is a Java archive file used to store jsp,servlets,classes,meta data

information, images and Sound and tag libraries etc. Its standard file extension is .war. WAR files are
used to package Web modules. A WAR file is for a Web application deployed to a servlet/jsp engine.

_ EAR -An Enterprise Archive file represents a J2EE application that can be deployed in a Web Sphere

2015 Amadeus IT Group SA

application server. EAR files are standard Java archive files and have the file extension .ear. EAR file
contain ejb, web or application client module. ear file is complete j2ee application file that contain
all(jar +war)

Page 9

What is deployment descriptor ?

_ A deployment descriptor (DD) refers to a configuration file for an artifact that is


deployed to some container/engine.

_ In the Java Platform, Enterprise Edition, a deployment descriptor describes how a

component, module or application (such as a web application or enterprise application)


should be deployed. XML is used for the syntax of these deployment descriptor files.

_ For web applications, the deployment descriptor must be called web.xml and must reside

2015 Amadeus IT Group SA

in the WEB-INF directory in the web application root. For Java EE applications, the
deployment descriptor must be named application.xml and must be placed directly in the
META-INF directory at the top level of the application .ear file.

Page 10

Download
_ Sun Java /Oracle jrockit
_ Weblogic Application server

http://www.oracle.com/technetwork/middleware
/weblogic/downloads/index.html

Installing JDK /Oracle jrockit


Windows:
o Right-click on the My Computer icon on your desktop and then click Properties.
o Click the Advanced tab.
o Click Environment Variables.
o Under System Variables, click New.
o In the Variable name field, enter JAVA_HOME.
o In the Variable value field, enter the installation path of the Java Development Kit.
o Click OK.
o Click Apply Changes.
UNIX

Page 11

export JAVA_HOME=PATH

2015 Amadeus IT Group SA

_ Install JDK / Jrockit


_ Set Environment variable JAVA_HOME

Weblogic Installation Types


_ GUI Mode
_ Console Mode
_ Silent Mode
What Is GUI-Mode Installation?

_ GUI-mode installation is the graphics-based method of executing the weblogic Installation


_

program. It can be run on both Windows and UNIX systems.


To run GUI-mode installation, the console attached to the machine on which you are
installing the software must support a Java-based GUI. All consoles for Windows systems
support Java-based GUIs, but not all consoles for UNIX systems do.

2015 Amadeus IT Group SA

Note: In unix, it is always recommended to install weblogic server with the


guest user not with root user.

Page 12

GUI Mode Installation

2015 Amadeus IT Group SA

_ Start the Installation by double click the installer file.


_ Click Next.

Page 13

GUI Mode Installation


_ Select an Installation Directory. By default, the Middleware home directory is

2015 Amadeus IT Group SA

named Oracle/Middleware.
_ Click Next

Page 14

GUI Mode Installation

2015 Amadeus IT Group SA

_ Register for Security Updates


_ Click Next

Page 15

GUI Mode Installation

2015 Amadeus IT Group SA

_ Choose a Custom Installation


_ Click Next

Page 16

GUI Mode Installation

2015 Amadeus IT Group SA

_ JDK Selection
_ Click Next

Page 17

GUI Mode Installation

2015 Amadeus IT Group SA

_ Choose Product Installation Directory


_ Click Next

Page 18

GUI Mode Installation

2015 Amadeus IT Group SA

_ Choose Shortcut Location


_ Click Next

Page 19

GUI Mode Installation

2015 Amadeus IT Group SA

_ Install Windows Service


_ Click Next

Page 20

GUI Mode Installation

2015 Amadeus IT Group SA

_ Installation Summary
_ Click Next

Page 21

GUI Mode Installation

2015 Amadeus IT Group SA

_ Status
_ Click Next

Page 22

GUI Mode Installation

2015 Amadeus IT Group SA

_ Installation Complete
_ Click Next

Page 23

Console-Mode installation
_ The console mode installer displays a series of text panels that correspond to

the windows in the graphical installer. To complete the console-mode


installation process, respond to the prompts in each panel by entering the
number associated with your choice or by pressing Enter to accept the
default. To exit the installation process, enter exit in response to any prompt.
To review or change your selection or to go back to a previous panel, enter
previous at the prompt.
platformXXX_win32 -mode=console -log=C:\logs\platform_install.log

2015 Amadeus IT Group SA

Run:

Page 24

2015 Amadeus IT Group SA

Console-Mode installation

Page 25

2015 Amadeus IT Group SA

Console-Mode installation

Page 26

2015 Amadeus IT Group SA

Console-Mode installation

Page 27

2015 Amadeus IT Group SA

Console-Mode installation

Page 28

2015 Amadeus IT Group SA

Console-Mode installation

Page 29

Silent Mode installation


_ Log in to the Windows system.
_ Create a silent.xml file that defines the configuration settings normally entered by a user during an
interactive installation process, such as graphical-mode or console-mode installation.

Silent.xml
<?xml version="1.0" encoding="UTF-8"?>
<bea-installer>
<input-fields>
<data-value name="BEAHOME" value="D:\WLS1036" />
<data-value name="WLS_INSTALL_DIR" value="D:\WLS1036\wlserver_10.3" />
<data-value name="COMPONENT_PATHS" value="WebLogic Server|Oracle Coherence" />
</input-fields>
</bea-installer>

Go to the directory that contains the installation program.


Start the installer as follows:

D:\WLS-Installer>wls1036_win32.exe -mode=silent -silent_xml=silent.xml -log=D:\WLS-Installer\install.log

Page 30

2015 Amadeus IT Group SA

Place the silent.xml file in the same directory as where the WebLogic Server Package installer is located.
Open a command prompt window.

Weblogic Domain
_ What Is a Domain?

2015 Amadeus IT Group SA

A domain is the basic administration unit for WebLogic Server instances. A domain consists
of one or more WebLogic Server instances (and their associated resources) that you manage
with a single Administration Server. You can define multiple domains based on different
system administrators' responsibilities, application boundaries, or geographical locations of
servers. Conversely, you can use a single domain to centralize all WebLogic Server
administration activities.
Each domain's configuration is stored in a separate configuration file called config.xml, which
is stored on the Administration Server along with other files such as logs and security files.
When you use the Administration Server to perform a configuration task, the changes you
make apply only to the domain managed by that Administration Server

Page 31

Weblogic Domain
_ Contents of a Domain ?

2015 Amadeus IT Group SA

A domain can include multiple WebLogic Server clusters and non-clustered


WebLogic Server instances. A minimal domain can contain only one WebLogic
Server instance, which functions both as an Administration Server, and as a
Managed serversuch a domain can be useful while developing applications,
but is not recommended for use in a production environment.

Page 32

Differences Between Configuration Startup Modes


Function

In development mode . . .

In production mode . . .

SSL

You can use the demonstration digital


certificates provided by the WebLogic
Server security services. With these
certificates, you can design your
application to work within environments
secured by SSL.

A warning message is displayed if you use


the demonstration digital certificates.

Deploying Applications

WebLogic Server instances can


automatically deploy and update
applications that reside in the
domain_name/applications directory
(where domain_name is the name of a
domain).

The auto-deployment feature is disabled,


so you must use the WebLogic Server
Administration Console or the
weblogic.Deployer tool.

Log File Rotation

When you start a server, the server


A server rotates its local log file after the
automatically renames (rotates) its local size of the file reaches 500 kilobytes.
server log file as server-name.log.n. For
the remainder of the server session, the
server rotates its local log file whenever
the size of the file reaches 500 kilobytes.

Execute Queues

The default number of threads available


to Execute Queues is 15.
The thread count determines the number
of simultaneous operations that can be
performed by applications that use the
specified execute queue.
By default, all applications use the
execute queue named default. You can
create additional queues to exercise more
control over the resources that your
applications use.

JDBC Connection Pool Capacity


Page 33

The default capacity is 15 connections.

The default capacity is 25 connections.

2015 Amadeus IT Group SA

The default number of threads available


to Execute Queues is 25.

What is Managed Server ?


_ Managed Weblogic Server:

2015 Amadeus IT Group SA

Any other server instance other than Administrative Server of a Weblogic domain
is called as Managed Weblogic Server. Managed Servers host the components
and associated resources that constitute the applicationsfor example, JSPs and
EJBs.

Page 34

What is Administration Server ?


_ Administration Server is WebLogic Server instance that maintains
configuration data for a domain. You can deploy your application on
administration Server but it is recommended to create managed
Server and deploy your application in managed server and leave
Administration domain for configuration and maintenance.

_ Note: There will always be atleast one Administration Server in a

2015 Amadeus IT Group SA

domain

Page 35

2015 Amadeus IT Group SA

Weblogic Domain

Page 36

2015 Amadeus IT Group SA

Weblogic domain creation (Flowchart)

Page 37

Weblogic domain creation

2015 Amadeus IT Group SA

_ Step1: Create Domain

Page 38

Weblogic domain creation

2015 Amadeus IT Group SA

_ Step2: Select Domain Source

Page 39

Weblogic domain creation

2015 Amadeus IT Group SA

_ Step3: Configure Administrator

Page 40

Weblogic domain creation


_ Step4: Select JDK & Start Mode - In below screen, you define Mode in which

2015 Amadeus IT Group SA

you wish to start your domain and JDK (Sun, JRockit or any other JDK)
Production Mode- Domain is more secure, You need username password to
start domain or deploy application.
Development Mode- Not very secure, You can Autodeploy application and no
need to provide username/password to start Domain.

Page 41

Weblogic domain creation


_ Step5:Customize your domain
_ On the next screen select Administration Server and Managed Servers,

2015 Amadeus IT Group SA

Clusters and Machines.

Page 42

Weblogic domain creation

2015 Amadeus IT Group SA

_ Step6: Configure Managed Server and admin server

Page 43

Weblogic domain creation

2015 Amadeus IT Group SA

_ Step7: Summary screen

Page 44

2015 Amadeus IT Group SA

Thank You

Page 45

You might also like