2. 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.”
3. 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
7. 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
9. WebLogic Server(Configuration 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
config.xml
References to other files
10. 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
11. 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.
12. 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
13. 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
14. 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.
15. 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
16. 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
17. 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
18. 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
19. 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
20. 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
21. 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
22. 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
23. Simplified Administration
• Multiple applications deployed to a single cluster
• Admin server on its own server (highly recommended)
• Single domain to manage
24. 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
25. 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
26. Oracle WebLogic Server 11g
Managing & Monitoring WebLogic Server – via Enterprise Manager
• Oracle WebLogic Server 11g Monitor and
manage multiple:
– WebLogic domains EM Grid Control
– WebLogic Server versions
• Provides JVM diagnostics
• Monitor FMW stack, Database, and
Applications from same console
WebLogic Server – 12c WebLogic Server – 11g WebLogic Server – 9.2
Admin Server Admin Server Admin Server
Managed Server 1 - n Managed Server 1 - n Managed Server 1 - n
Domain A Domain B Domain C
28. 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