Oracle Web Logic server

29
WebLogic Server 11g Overview and Administration Basics

Transcript of Oracle Web Logic server

WebLogic Server 11g

Overview and Administration Basics

Oracle WebLogic Server 11g

“ Oracle WebLogic Server is a scalable, enterprise-ready Java Platform, Enterprise Edition (Java EE) application server. “ “The WebLogic Server infrastructure supports the deployment of many types of distributed applications and is an ideal foundation for building applications based on Service Oriented Architectures (SOA).” “In addition to the Java EE implementation, WebLogic Server enables enterprises to deploy mission-critical applications in a robust, secure, highly available, and scalable environment. These features allow enterprises to configure clusters of WebLogic Server instances to distribute load, and provide extra capacity in case of hardware or other failures.”

AGENDA

• J2EE Application Server Basics

• Oracle WebLogic Server 11g

– Core Capabilities

– Installing & Configuring WebLogic Server

– WebLogic Server Administrative Topology

– Managing & Monitoring WebLogic Server

• Packaging

• Q&A

Java EE (JEE) Application Server Services Provided

Presentation Services

Business Logic Services

Integration Services

Container Services

• Java Servlets • Java Server Pages (JSP) • Java Server Faces (JSF)

• Enterprise Java Beans (EJBs) • Java Persistent Architecture (JPA) • Java Messaging Services (JMS) • Java Database Connectivity (JDBC)

• Java Connectivity Architecture (JCA) • Java Web Services (JWS, JAX-WS)

• Java Transaction Services (JTS) • Java Authentication & Authorization Container (JAAC) • Java Management Extensions (JMX)

Oracle WebLogic Server 11g Core Capabilities – Standards Support

Oracle WebLogic Server 11g Administrative Topology

Domain

• What is domain Logically related group of WebLogic Server instances which are managed from a single set of configuration artifacts

• What's in a domain Domain consists of servers/Clusters of Servers

• Facts about a Domain All instances at the same major & minor version Servers can be at different Maintenance Pack levels Administration Server must be at same or higher Maintenance Pack Level than its Managed Servers

Domain Directory(Folders Layout)

WebLogic Server(Configuration Files)

config.xml

References to other files

config.xml - A central configuration file for a domain • File includes the configuration for each server instance, cluster, resource, and service

in the domain • Includes references to additional XML files that are stored in subdirectories of the

domain/config directory : JMS, JDBC, WLDF, and Security • All files are based on schemas

Now – What is a Server

A configured instance to host applications and resources

• WebApps, Enterprise Apps, Web Services,…

• JMS, JDBC, Diagnostics,…..

There are 2 types of server in a WebLogic Domain

• Administration Server

• Managed Server

JNDI

JMS Queue

JDBC Pool

Now – What is a Administration Server Administration Server is the main configuration controller for the domain • It performs the following – Hosts the Administration Console – Enables you to start and stop servers – Enables you to migrate servers and services – Enables you to deploy applications • Important Guidelines: – There must be exactly one* Administration Server in domain – An Administration Server controls only one domain. – For production use, hosting application logic or resources not recommended

*The Administration Server does not need to run at all times, but is required for making configuration and deployment changes to a running domain.

Now – What is a Managed Server

Managed Server is a running instance that hosts applications and application resources – Each Managed Server is independent of other Managed Servers (unless they are in a cluster) – No limit to number of Managed Servers in a domain – Individual Managed Servers are added for capacity and/or application isolation

Interaction between Administration and Managed Server Administration Server stores the master copy of the domain Configuration • Administration Server stores the configuration for all managed servers in the domain • Each Managed Server stores a local copy of its configuration • When a Managed Server starts, it connects to the Administration Server to synchronize the configuration • When configuration is changed, the Administration Server sends changed configuration to Managed Servers

Now – What is a Cluster

A cluster is a group of Managed Servers running simultaneously and working together to provide increased scalability and reliability. – Scalability: through parallelism – Reliability/Availability: through replication and redundancy • A cluster appears as a single instance to most clients. • Clusters enable some advanced features, such as Whole Server Migration, Service Migration, and clustered JMS destinations.

Cluster Guidelines All servers in a cluster must also be in the same domain. • All servers within a cluster must be at the same Maintenance Pack level. • Clustered servers can be on the same or different machines. • You can have multiple clusters in a domain.

How does load balancing/failover happen in a cluster Load Balancing For JSPs and Servlets: load balancing is external • Web server proxy plug-in (round robin) • HTTP Proxy servlet (i.e., using WLS as a load balancer) • 3rd party hardware or software load balancer EJBs and RMI Objects: load balancing is done at connection • Objects are cluster-aware • Load balancing algorithm is stored in the clustered object’s stub • Objects are available on all cluster members; remote objects connect/use according the

LB algorithm in the stub • Load balancing algorithms: Round robin, weighted, random, server affinity

Failover Servlets and JSPs: • HTTP session state is replicated to a secondary server in the cluster or to a database EJBs and RMI Objects: • Replicas available throughout the cluster • Exceptions caught and retried on another instance • For Stateful Session Beans, state is replicated on a secondary server

How does communication happen in a cluster

Peer to Peer using Sockets - used for: • Accessing non-clustered objects deployed to another clustered server instance

on a different machine. • Replicating HTTP session states and stateful session EJB states between a

primary and secondary server instance. • Accessing clustered objects that reside on a remote server instance. Peer to Peer using Unicast or Multicast - used for: • Cluster-wide JNDI updates • Heartbeats Cluster-wide JNDI tree • Lists local resources and resources available throughout the cluster • List is maintained on all servers in the cluster

What is a NODE MANAGER • Utility/process running on a physical server

• Enables you to start, stop, suspend, and restart WebLogic

Server instances remotely

• Must run on each physical server that hosts WebLogic Server instances that you want to control with Node Manager

• Not associated with a domain. Can start any server instance that resides on the same physical server.

• Required for Whole Server Migration and for some configurations of Automatic Service Migration

Single Server Development Configuration

• Single server acts as the Administration Server and as a host for applications

• Not recommended for production, but standard for development

Configuring for Application Isolation

• Deploy applications to their own servers • Admin server on its own server (highly

recommended) • Each managed server on its own physical server

Configuring for Extreme Application Isolation

• Each application gets its own domain • Admin server on its own server (highly recommended) • Each managed server on its own physical server

Configuring for High Availability

• Clustered servers for HA and scalability • All managed servers in the same cluster are on different machines • Machines are frequently shared

Configuring for Performance & Utilization

• Multiple Managed Servers per machine • All Managed Servers in one cluster • Cluster replication scheme considers location in determining secondary

Managed Servers

Simplified Administration

• Multiple applications deployed to a single cluster • Admin server on its own server (highly recommended) • Single domain to manage

Oracle WebLogic Server 11g Managing & Monitoring WebLogic Server- WLS Console

• Start/Stop Managed Servers • Manage clusters • Manage services – JDBC, JMS, etc. • Configure Work Managers • Configure and deploy your applications • Monitor server and application

performance • View server and domain log files • Edit runtime deployment descriptors

Oracle WebLogic Server 11g Managing & Monitoring WebLogic Server – WLST

• Jython-based • Console Mode • Script Mode • Embedded Mode • Perform online & offline Tasks • Can be called from ANT • Recordable from WebLogic Console

Oracle WebLogic Server 11g Managing & Monitoring WebLogic Server – via Enterprise Manager

WebLogic Server – 12c

Domain A

Admin Server

Managed Server 1 - n

WebLogic Server – 11g

Domain B

Admin Server

Managed Server 1 - n

WebLogic Server – 9.2

Domain C

Admin Server

Managed Server 1 - n

EM Grid Control

• Oracle WebLogic Server 11g Monitor and manage multiple:

– WebLogic domains – WebLogic Server versions • Provides JVM diagnostics • Monitor FMW stack, Database, and

Applications from same console

Oracle WebLogic Server 11g Management Pack Enterprise Edition for WebLogic

Java Application Performance • Automatic service end-point detection • POJO framework (struts) support • Architectural Topology • In-context performance • SQL View Configuration Management • Discovery & asset tracking • Track configuration changes • Configuration provisioning • Ensure compliance with standards Provisioning and Patch Automation • Provisioning framework with deployment procedures • Customizable Deployment Procedures ->install, patch, clone, add capacity

WebLogic Server SE, Server EE, Suite Packaging

• WebLogic Server Standard Edition WebLogic Server + Kodo Enterprise + TopLink and ADF + JDeveloper +

Enterprise Pack for Eclipse + Oracle HTTP Server

• WebLogic Server Enterprise Edition = WebLogic Server Standard Edition + Clustering + Enterprise Manager

Diagnostics Pack

• WebLogic Suite = WebLogic Server Enterprise Edition + Coherence EE + JRockit Real Time + Management Pack for Coherence + iAS EE + WL Operations Control

QUESTIONS

Rakesh Gujjarlapudi [email protected]