Вы находитесь на странице: 1из 11

Introduction:

1) J2EE Technologies

J2EE Standardizes Distributed Systems

2) Web and WebLogic Server Terms


Terminology Components of a WebLogic Server Domain

The Enterprise Systems Problem Domain:

Enterprise System Requirements:

Requirement High Availability Load-balancing

Description The capability of a system to process client requests with little or no down time Distributing incoming client Load-balancing requests to system resources

Failover Scalability Security Maintainability

The capability of a system to transfer control to a backup component when a fault occurs The capability of a system to process increasing client request volume without service degradation The capability of a system to identify users and control access to sensitive data A measure of the ease with which a system can be upgraded, debugged, configured and reconfigured

Java EE 5 Overview (New J2EE):

Client-tier Protocols:
Supported TCP/IP Protocols:

HTTP HTTPS WAP SSL SOAP IIOP T3

Application Logic Layer:

Application server:
An Application Server does the following:

It provide services that support the execution and availability of deployed applications It handles heavier processing tasks than a Web server does

A Web Application Server Configuration:

Definition: Server
1). A server is an instance of weblogic. Server executing in a JVM.

2). A server:

Runs on a designated WLS machine Has a dedicated amount of RAM Is multi-threaded

Definition: Machine
1). A machine is a computer that hosts WebLogic Server. 2). A machine:

Runs a supported operating system platform Can host multiple WebLogic Server instances

Definition: Cluster
1). A cluster is a logical group of WLS servers. 2). WebLogic clusters provide automatic:

Load-balancing Fault tolerance

3). A cluster is transparent to a client.

Definition: Domain
1). A domain is a logically related group of WebLogic Server resources that you manage as a unit. 2). A domain provides one point of administration. 3). A WebLogic Server domain can logically separate:

Development, test, and production applications Organizational divisions

Why we Use Domains?


1). A domain is an administration feature that:

Is transparent to applications Can be configured and administered, for technical or business reasons, even after applications are developed or in production

2). WebLogic Server domains can be used to separate:


Development, test and production applications Administration and operational responsibilities Organizational or business divisions

Definition: Administration Server


1). An Administration (admin) Server is the central point of control for a domain. 2). An admin server:

Stores the configuration information and logs for a domain Runs the WebLogic administration console

Definition: Managed Server


1). A managed server any server in a domain that is not the admin server. 2). A managed server:

contacts the admin server for configuration information runs business applications in a production environment

Reliability, Clustering, High Availability:


Clustering Achieves

Failover Load balancing Reliability Session pooling

WebLogic Scripting Tool (WLST)

Command-line scripting interface for managing and monitoring WebLogic Server instances, clusters, and domains Based on 100% pure Java implementation of Python Modes of operation (script / interactive) (online / offline) Provides a repeatable process for propagating configuration changes across environments Quickly allows environments to be replicated and migrated

Definition: Node Manager


Node Manager (NM):

Java utility that runs as separate process from WebLogic Server Can be run automatically in the background, as a Windows service or a Unix daemon Runs on the same computers as the managed servers Lets you monitor managed servers regardless of its location with respect to its Administration Server Can be used to start and stop managed server (manage managed server) Can automatically restart a Managed Server after an unexpected failure Is optional Is Domain-Independent Cannot used to start or stop an Administration Server

Extensive Use of Administration Console:


Start, stop and configure server instances Configure 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 Administration Console Online Help

BEA's JVM (now) Oracles JVM: JRockit


High performance JVM optimized for Intel architectures Ensure reliability, scalability, manageability, and flexibility for Java applications Comes with Runtime Analyser which enables the developer to handle runtime issues. Has a memory leak detector which can be used during development as well as production time. Comes along with a Management Console. Works on either the Windows or Linux operating system Supports both 32-bit or 64-bit architectures Ease of Use because included with your WebLogic Server installation

Webserver Plug-ins:

Plug-ins are provided with your WebLogic Server installation that allow WebLogic Server to operate with different webservers.

Plug-ins provided for: Apache Web server Microsoft IIS Sun Web server

What is WebLogic Domain?


A WebLogic Domain is a logically related group of WebLogic Server instances (Admin + managed Servers)that you manage from a single set of configuration artifacts. A weblogic Domain contains exactly one AdministrationServer and zero or more than zero managed Servers. All WebLogic Server instances within the same domain must be at the same major and minor version. Servers within a domain can be at different Maintenance Pack levels as long as the Administration Server is at the same Maintenance Pack Level or higher than its Managed Servers. Example: AdminServer may be running using WLS10 MP1 and Managed Servers may be runnning using WLS10 MP0. (Correct) AdminServer may be running using WLS10 MP0 and Managed Servers may be runnning using WLS10 MP1. (Wrong)

What Are WebLogic Servers?


WebLogic Servers are the Programs Java programs which starts listening on a perticular port (Secure/NonSecure) to serve clients requests. It can also have many sub systems for request processing like Jdbc Pools, JMS modules, Jolt connection Pools, Mail Servers,etc are deployed on servers. WebLogic Servers can be categorized in two categories 1). Admin Server 2). Managed Servers

What is Administration Server?


Administration Server Can be only one for a Domain, which works like a Central Configuration/Monitoring controller for the entire domain. It Hosts the Administration Console application (consoleapp) which is placed inside the following Location: C:\bea103\wlserver_10.3\server\lib\consoleapp

ConsoleApp Helps us to Start and Stop servers from a from admin console Only if the Servers are configured to run with Machines, because Every machine has a Nodemnager Associated with it. If a Server is not assigned a Machine/NodeManager then it cannot be started using the Administartion Console. AdminServer helps us to Migrate Servers and Services within the domain. AdminServer helps us to Deploy Applications within the domaintargeted to ManagedServers/Clusters or targeted to AdminServer itself. There must be exactly One Administration Server in domain. Usually we can deploy applications on AdminServer/ManagedServers/Clusters But for Production environments, it is Not recommend to hosting application logic or resources on the Administration Server.

What Are Managed Servers?


Managed Servers are similar to the Administration Servers, except few differences. Like Managed Servers will not have Administration Console Application (consoleapp) deployed in it. Each Managed Server is independent of all other Managed Servers in the domain. Managed Servers can be part of Clusters to work together as a Unit. We can have one or more than one Managed Servers in a domain according to our requirement. The Managed Servers can reside inside the Physical box of AdminServer or they can run on a Separate Physical Box as well. Managed Servers can be started and Stopped without the AdminServer Running as wellthis feature is called as MSI- mode of ManagedServers. MSI stands for ManagedServers Independent Mode.

How ManagedServers interacts with Admin Server?


The Administration Server stores the master copy of the domain configuration, which contains all the configuration for all managed servers in the domain including other resource configurations like DataSource, JMS respurces, WLDF , mail Sessionetc configurations as part of the config.xml file which is placed inside the: <DOMAIN_HOME>\config directory Example: C:\bea103\user_projects\domains\7001_Domain\config\config.xml Every Managed Server stores a local copy of its configuration with the help of NodeManagers. If AdminServer is already started then while startup operation of Managed Server, it connects to the Administration Server to synchronize the configuration and in case of any modifications in the config.xml it collects those changes from the AdminServer. If AdminServer is not already running and if we will try to start Managed Servers (in MSI Mode) then Managed Servers get the Cached Configuration file which is provided by the NodeManager with the name of msi-config.xml For more information on this please refer to: http://download.oracle.com/docs/cd/E13222_01/wls/docs81/adminguide/failures.html

What Is a WebLogic Server Cluster?


A cluster is part of a particular WebLogic Server domain. A WebLogic Server cluster consists of multiple WebLogic Server server instances running simultaneously and working together to provide LoadBalancing and Failover features. A cluster appears to clients to be a single WebLogic Server instance. The server instances that constitute a cluster can run on the same machine, or be located on different machines. We can add any number of Managed Servers as part of a Cluster. Each server instance in a cluster must run the same version of WebLogic Server. At any point of time Any Managed Server can not belong to more than one Clusters. If a domain contains multiple clusters, each cluster in the domain has the same Administration Server.

How Cluster and Domain Are Related?


A domain is an interrelated set of WebLogic Server resources that are managed as a unit. A domain includes one or more WebLogic Server instances, which can be clustered, non-clustered, or a combination of clustered and non-clustered instances. A domain can include multiple clusters. A domain also contains the application components deployed in the domain, and the resources and services required by those application components and the server instances in the domain. Examples of the resources and services used by applications and server instances include machine definitions, optional network channels, connectors, and startup classes.

What Are the Benefits of Clustering?


Scalability (Load Balancing/Load Sharing): The capacity of an application deployed on a WebLogic Server cluster can be increased dynamically to meet demand. You can add server instances to a cluster without interruption of service, the application continues to run without impact to clients and end users. High-Availability(Failover): In a WebLogic Server cluster, application processing can continue when a server instance fails. You cluster application components by deploying them on multiple server instances in the cluster so, if a server instance on which a component is running fails, an other server instance on which that component is deployed can continue application processing.

What is NodeManager?
A Node Manager process is not associated with a specific WebLogic domain but with a machine. Node Manager process to control server instances in any WebLogic Server domain until the server instances reside on the same machine as the Node Manager process. Node Manager is a WebLogic Server utility that enables you to start, shut down, and restart Administration Server and Managed Server instances from a remote location. Although Node Manager is optional, it is recommended if your WebLogic Server environment hosts applications with high availability requirements. A Node Manager process is not associated with a specific WebLogic domain but with a machine. You can use the same Node Manager process to control server instances in any WebLogic Server domain, as long as the server instances reside on the same machine as the Node Manager process.

Why We Need Nodemanagers?


1). It can Start, Shut Down, and Restart an Administration Server which has assigned a Machine. 2). It can Start, Shut Down, and Restart an Managed Server which has assigned a Machine. 3). It can Restart Administration and Managed Servers. (Crash Recovery of Servers is an Interesting feature) 4). It can be used to Monitor Servers and View Log Data

Types of NodeManagers?
1). Java Based Nodemanager: This can be used in Windiows as well as UNIX based Operating systems. Java Based Node Manager is not supported on Open VMS, OS/390, AS400, UnixWare, or Tru64 UNIX. 2). Script Based Nodemanager: This nodemanager can be used in UNIX based operating systems. The advantage of the script-based Node Manager is that it can remotely manage servers over a network that has been configured to use SSH. For More Information on NodeManager please refer to: http://download.oracle.com/docs/cd/E13222_01/wls/docs90/server_start/nodemgr.html And http://blogs.oracle.com/jamesbayer/2010/01/weblogic_nodemanager_quick_sta.html

Вам также может понравиться