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

Themabijeenkomst: WebLogic

Agenda
19:00 : Opening OGh session

19:00 - 19:45: Part 1

19:45 - 20:00:

20:00 - 21:00: Part 2 & Questions

21:00 : The End


Agenda
Part 1
• Historical overview

• J2EE Concepts

• WebLogic Domain Architecture

• The Node Manager


Agenda
Part 2
• JAVA Virtual Machine

• WebLogic resources: JDBC, JMS

• Administration Console & Enterprise


manager console
Agenda
Part 2
• Monitoring tools

• WebLogic Server’s position in the


Oracle FMW stack
Michel Schildmeijer
Oracle Fusion Middleware Architect from

Committed to ICT. Involved in people.

• From 1991 till now


• 85 colleagues
• HeadQuarters @ Nieuwegein
• Oracle Gold Partner
From the beginning till now…
Application Server versions
• WebLogic Server 11gR3 (10.3.4) --> 01-2011
• In 2008 oracle Acquired BEA (10.3)
• In 1998 BEA Acquired WebLogic
• WebLogic Tengah - Nov 1997
• WebLogic 1.48 – 1995( founders developed also
the 1st JDBC Drivers)
From OC4J to WebLogic
• Oracle Containers for Java (OC4J).
• Oracle native J2EE server, based
on HTTP (Apache) and OC4J
• Each OC4J was a JVM
• Last version of OC4J 10g was
10.1.3.5
From OC4J to WebLogic
J2EE Concepts

J2EE concepts
J2EE Concepts
• Distributed systems divide the work
among several independent modules.
• The failure of a single module has less
impact on the overall system, which makes
the system more:
o Available
o Scalable
• Maintainable
J2EE Concepts
• Applications deployed with Java EE
technologies are:
o Standardized
o Adherent to specification guidelines
o Written in Java
o Deployable in any compliant application server
J2EE Concepts
J2EE Resources
• Java Servlets
• Java Server Pages (JSP)
• Enterprise JavaBeans (EJB)
• Java Database Connectivity (JDBC)
• Java Naming and Directory Interface (JNDI)
• Java Transaction API (JTA)
• Java Message Service (JMS)
J2EE Resources
• Java Authentication and Authorization
(JAAS)
• Java Management Extensions (JMX)
• Java EE Connector Architecture (JCA)
WebLogic Domain concepts

WebLogic Domain concepts


WebLogic Domain concepts
• A logically related group of WebLogic
Server instances that you manage from a
single set of configuration artifacts.
• Is the basic administration unit for Oracle
WebLogic Server
• Always includes one Oracle WebLogic
Server instance configured as an
administration server

17
WebLogic Domain concepts
• Could include optional Oracle WebLogic
Server instances in a domain called
managed servers
• Could also include clusters of server
instances that work together

18
WebLogic Domain concepts
WebLogic domain Node Manager

Cluster1

Admin
server - JDBC
Managed Managed - JMS
server server
Managed - JTA
server - Adapters
Cluster2 Libraries

-
Managed Managed Managed
- Apps
server - Security
server server

config.xml

File repository

19
WebLogic Domain concepts
How to create a domain?
• Domain config utility
• <WebLogic Server Home>\common\bin\config.cmd(sh)
• console mode using ‘–mode=‘ argument (default is GUI)

• Domain creation with scripting – WLST


• WLST stands for WebLogic Scripting Tool
(Python bases scripting language)

20
Domain Directory
Domain name

Start and stop


scripts
Root configuration for
the domain

Configuration files for


JDBC, JMS, and Security

Pending configuration
changes

Subdirectory for each Managed


Server in the domain
21
WebLogic Server Instances
• What is a WebLogic Server Instance?
o A configured instance to host applications and
resources
 Web Apps, Enterprise Apps, WebServices, …
 JMS, JDBC, Diagnostics, …

• What types of servers instances are there?


o Administration Server
o Managed Server

22
WebLogic Server instances
• Simple overview

JNDI

JMS Queue

WebLogic JDBC Pool

Server Instance Database

23
Administration Server instance
Some facts
• Central configuration controller for the
entire domain
• Hosts the Administration Console
• To start and stop servers from a central
location
• Migrate servers and services within the
domain
• Enables you to deploy applications within
the domain
• Only one* Administration Server in domain
24
Administration Server instance
• Accessing the console
• http://hostname:7001/console
• https://hostname:7002/console  SSL
• https://hostname:9002/console 
Administration Port enabled

25
Managed Server Instance
• Server instances other than the
AdminServer are referred to as Managed
Servers.
• Managed Servers host the components and
associated resources for applications
• Each Managed Server is independent of all
other Managed Servers in the domain
• Number can be unlimited

26
Managed Server Instance
• Individual Managed Servers are typically
added for capacity and application isolation
• Two or more Managed Servers can be
configured as a WebLogic Server cluster to
increase application scalability and
availability

27
WebLogic Server Cluster
• A cluster is a group of logical entities and
other resources that act like a single system
and enable high availability and, in some
cases, load balancing and parallel
processing
• Two or more Managed Servers can be
configured as a WebLogic Server cluster to
increase application scalability and
availability
28
WebLogic Server Cluster
• A cluster is a group of logical entities and
other resources that act like a single system
and enable high availability and, in some
cases, load balancing and parallel
processing
• Two or more Managed Servers can be
configured as a WebLogic Server cluster to
increase application scalability and
availability
29
WebLogic Server Cluster
• Basic Tier Cluster
Domain

server 1
Web EJB
container container

Load
balancer server 2
Web EJB
container container

Cluster

30
Architecture Considerations
Use the architecture for your needs

App1 App2
AdminSer
ver MS1 MS2

Application isolation

31
Architecture Considerations

Domain 1
App1 App2
AdminSer
ver MS1 MS2

Domain 2
App3 App4
AdminSer
ver MS1 MS2

Extreme Application isolation


32
Architecture Considerations

Domain Cluster 1
App1 App1
AdminSer
ver MS1 MS2
App2 App2

MS3 MS4

Cluster 2

Clustered Applications
33
The Node manager
• Java-based and Script-based
• To control server instances in any WebLogic
Server domain, as long as the server
instance IS on the same server as the Node
Manager process.
• Not attached to a specific Domain but
machine(A definition that identifies a particular,
physical piece of hardware.)
The Node manager
• Optional, but required for manipulating
servers in the AdminConsole
• Node Manager must run on each computer
that hosts instances
• Use for crash recovery, remote stop and
start
The Node manager
• Optional, but required for manipulating
servers in the AdminConsole
• Node Manager must run on each computer
that hosts instances
• Use for crash recovery, remote stop and
start
The JAVA Virtual Machine

The JAVA Virtual Machine


The JAVA Virtual Machine
• JAVA Virtual Machine

• JVM per O/S (Windows, Linux, Solaris,


AIX)
The JAVA Virtual Machine
• JVM is a byte code interpreter

• JVM heap is the area of memory used by


the JVM
The JAVA Virtual Machine

Oracle WebLogic Server shipped with 2


JVM providers:

• Oracle recommends:
o Sun for Development Mode
o JRockit for Production Mode
The JAVA Virtual Machine
• JVM Providers (Sun, Bea/Oracle (JRockit)
• Runtime behaviour:
o JVM runs as an OS process
o Execute work through threading
model (concurrency)
o Garbage Collector
• Each Weblogic Server (instance) runs
inside a separate JVM (instance). Same
for the Node Manager process
WebLogic J2EE resources

WebLogic J2EE Resources


JDBC
WebLogic J2EE resources
• The Java Database Connectivity (JDBC)
specification:
o Is a platform- and vendor-independent mechanism
for accessing and updating a database
o Provides transparency from proprietary vendor
issues
o Requires the use of a driver
• JDBC drivers are supplied by WebLogic Server
or by your database vendor.
WebLogic J2EE resources
JDBC Connection pooling
• A set of cached database connections.
The connections can be reused when future
requests to the database are required.
• Connection pools are used
• to enhance performance
WebLogic J2EE resources

WebLogic J2EE Resources


JMS
WebLogic J2EE resources
• API for creating, sending, receiving and reading
distributed messages
• Supports
oPeer 2 Peer or single consumer
oPublish/Subscribe
oAsynchronous or synchronous
WebLogic J2EE resources
Oracle WebLogic JMS supports:
• PTP and Publish/Subscribe
• Acknowledgement-based guaranteed delivery
• Transactional message delivery
• Distributed destinations
• Recovery from failed servers
JMS in action
Connection
Factory
Creates connection

WLS JNDI
Connection

creates creates
Message Message
Session
Producer Consumer
receives
sends to creates
from

Destination Msg Destination


QUEUE QUEUE
WebLogic Consoles

WebLogic Administration Console


WebLogic Consoles
• Monitor server and application
performance
• Manipulating lifecycle:
o Applications
o Server Instances
o Resources
• View server and domain log files

• Configure Diagnostics data


WebLogic Consoles
• Configure Diagnostics data

• Simple Deployment tasks


WebLogic Consoles
1.Change Center 7

2.Navigation tree
3.Help Center
4.System Status
5.Work area
6.Breadcrumbs
7.Preferences
WebLogic Consoles

The ‘other’ console:


Fusion Middleware
Enterprise Manager
WebLogic Consoles
Access at http://host:port/em
• Same host & port
as WLS Admin
Console
• Connect as
weblogic
• Requires JRF/
ADF runtime
Status of Enterprise Manager
• FMW Enterprise Manager Console
o ADF based application, deployed on WLS 11g
• Has a dependency on the JRF library
• Currently complements and may/will succeed WLS
Admin in the longer run => it’s the future!
• Provides some operations not available in WLS
Admin Console – especially regarding FMW products
o Has more graphical, sometimes more functional interfaces
for ‘core’ WLS administration operations
• including application deployment and MBean management
Monitor and Control
• Enterprise Manager provides an overview of
and allows control
over Managed
Servers
and Deployed
Applications
o Startup/Shutdown
o Deploy, Redeploy
and Undeploy
Comparing Admin Console &
FMW EM
WLS Admin Console FMW Enterprise Manager
• All JEE constructs • GUI (with Web 2.0 Charts)
o Data Source, JMS, JavaMail, o Farm & Topology View
EJB, JMX, JTA, … • Deployment Wizard
• Deploy Library • System MBean Browser
• Update Deployment • Manage JDBC Data Source
o Apply Deployment Plan
• Manage WebServices &
• Security: manage realms, WebService Policies
users, groups, ..
• Manage Fusion Middleware:
• JNDI Tree ADF, WebCenter, SOA Suite,
• Cluster Management Forms, Discoverer..
Other Tools

WebLogic Monitoring Tools


Other Tools
• WLDF – WebLogic Diagnostic Framework
collects, archive, and access diagnostic
information.
Other Tools
• Application Logging and WebLogic
Logging Services - logging services
provide info about server and application
events
Other Tools
• JVM Consoles:
o JRockit Mission Control  For JRockit JDK
Other Tools
• JVM Consoles:
o Jconsole  For Sun HotSpot JDK
Other Tools
• Oracle Enterprise Manager GridControl
• EM’s extended version
Oracle Fusion Middleware

WebLogic’s position in the Oracle


FMW Stack
Oracle Fusion Middleware
Fusion
Applications PeopleSof
EBS JDE Siebel

WebCenter

Portal

Hyperion

BI EE

Discoverer EM
UCM

JDeveloper
BPM SOA Suite
OER
ODI Forms OSB
IdM

Coherence
FMW Components
WebLogic Server 11g

WebLogic Server 11g

SOA Suite WebCenter UCM


11g Spaces

Forms Portal BI EE
For example: the SOA Suite 11g
• SOA Suite is the engine that runs applications that
implement the WebServices
o Inside the WebLogic Server application server
• SOA is installed on WLS, SOA applications are
deployed on SOA Suite
WebLogic Server 11g WebServices

SOA Suite 11g

SOA Infra
SOA Suite 11g & WebLogic
JDBC Data Database
SOA App 1 SOA App 2
Sources Adapter

Business
BPEL BPMN OSB JMS
JMS Rule
Human Spring Adapter
Mediator
Task Java/EJB
File
XA/JTA Event Delivery Network System
SOA Suite 11g Adapter

WebServices Meta Data User Messaging


EJB Management Services (MDS) Service

Platform Security Services


WebLogic Server 11g
Another example:
Oracle Service Bus

Email Server

SCA Domain Oracle Service Custom


(SOA Suite) Application
Bus
Mainframe

SCA Domain SAP


(SOA Suite)
Or….

michel.schildmeijer@amis.nl
Or….

• http://nl.linkedin.com/in/mschldmr

• AMIS Blog:http://technology.amis.nl/blog/

• mnemonic01
Or….
My Book, coming out in August 2011
• https
://www.packtpub.com/oracle-weblogic-server-
11gr2-administration-essentials/book
Or….
My Book, coming out in August 2011
• https
://www.packtpub.com/oracle-weblogic-server-
11gr2-administration-essentials/book

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