Download - WebLogic Server: a comparison with Oracle Application Server ...

Transcript

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

1

1 (1.1w)

WebLogic Server: a comparison WebLogic Server: a comparison WebLogic Server: a comparison WebLogic Server: a comparison with Oracle Application Serverwith Oracle Application Serverwith Oracle Application Serverwith Oracle Application Server

Simon Haslam

Veriton Limited

Northern Technology SIG

28th April 20092 (1.1w)

Simon Haslam / VeritonSpecialised consultant & Oracle Partner, established 13 years

Demanding web & call-centre applications

Architecture & development strategy; health-checks; disaster recovery; tuning

Oracle Application Server(clusters, J2EE, ADF, SSO, OID, Reports, etc)

Database & related technologies(Solaris/Linux, load balancers, firewalls, …)

3 (1.1w)

Agenda

1. Architecture

2. Installation

3. Getting Started

4 (1.1w)

OAS Terms

• Farm (10.1.2)

– one or more App Server instances

• App Server Instance (~ ‘app server’)

– typically one per server

• OC4J instances

– (along side HTTP Server instance, OID instance, reports server instances)

• For an OC4J instance (~config set) have one or more JVMs

• Cluster set up across several AS instances

5 (1.1w)

WebLogic Terms

• Domain– abstract level– set of WL resources, e.g. instances

• Admin Server– Controls a domain (one per domain, with backup)

• Managed Server– An instance controlled by an Admin Server

• Machine– Node Manager to manage WL servers

• Clusters– can be set up across multiple Managed Servers

6 (1.1w)

Architecture

webserver

domain

machinemanaged

server

managedserver

machine

managedserver

nodemanager

adminserver

nodemanager

adminconsole

app

requests

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

2

7 (1.1w)

Comparison of Terms

OPMNnode manager

~application servermachine

cluster contains several instances

OC4J instance(one or several JVMs)

server instance(one JVM)

~farmdomain

Oracle Application ServerWebLogic Server

8 (1.1w)

Installation

• 10g R3 has rebadged BEA installer

• BEA_HOMEdirectory – like the Oracle base except can only have one version of each product in it

• WL_HOME~ ORACLE_HOME

• registry.xml ~ the Oracle Inventory

• beahomelist ~ oraInst.loc

9 (1.1w)

Running Installer

• Graphical: Linux example

– export DISPLAY

– chmod a+x server103_linux32.bin(if reqd)

– ./server103_linux32.bin

• Command line: -mode=console

• Silent: -mode=silent -silent_xml=<path_to_silent.xml>

10 (1.1w)

Installation Types

• Complete

– WLS, Workshop for WL, examples

– Sun JDK, JRockit JDK

• Custom

11 (1.1w)

Basic Pre-Requisites

• Supported Platforms:

– RH EL 4/5, OEL 4/5

– Solaris 8/9/10

– Windows 2003

– etc

• Memory: 1GB min. (2GB recommended)

• Disk space: up to 1.8GB

12 (1.1w)

Installation�

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

3

13 (1.1w)

14 (1.1w)

15 (1.1w)

16 (1.1w)

17 (1.1w)

18 (1.1w)

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

4

19 (1.1w)

20 (1.1w)

Comparison of Installers

ORACLE_HOME

option of remote installs on headless servers

WL_HOME

(ORACLE_BASE)

arbitrary no. of installs

BEA_HOME

one install per product/version

Graphical

Silent

Graphical

Text Mode

Silent

Oracle Application ServerWebLogic Server

21 (1.1w)

Getting Started

• Default WebLogic home page

– http://<host>:7001 or (https: 7002 )

– admin console:• http://<host>:7001/console

• default username: weblogic/weblogic

• Compare with OAS

– http://<host>:7777 (https: 4443 ) via OHS/WC

– admin console:• http://<host>:1156 (10.1.2/4)

• http://<host>:7777/em (10.1.3)

• default username ias_admin/< password set during install>

22 (1.1w)

Management

• Admin Console

• WebLogic Scripting Tool (WLST) ☺

– can also record scripts from console ☺☺

23 (1.1w)

Starting/Stopping Server

Various options:

• <domain>/bin/startWebLogic.sh (+stop )

• using WLST to start server directly

• using WLST to use NM to start server

• weblogic.Server in a Java command

24 (1.1w)

WebLogic Scripting Tool

• . $WL_HOME/server/bin/setWLSEnv.sh

• java weblogic.WLST

[oracle@westfield31 bin]$ . ./setWLSEnv.shCLASSPATH=…PATH=…Your environment has been set.

[oracle@westfield31 bin]$ java weblogic.WLSTInitializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting ShellType help() for help on available commands

wls:/offline> exit()

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

5

25 (1.1w)

Node Manager

• Start directly• $WL_HOME/server/bin/startNodeManager.sh

• …or using WLST• wls:/offline> startNodeManager()

26 (1.1w)

Configuring JDBC

• Data sources

– Use Oracle (i.e. third party) drivers

• Multi-data sources & RAC

• Connection testing

• Failure conditions

27 (1.1w)

Deploying Apps

• Deploy as archive file or exploded

• Hot deployment: multiple versions within same server

– compare to rolling upgrade of instances using mod_oc4j routing within an OAS cluster

• Staged deployment allowsdeploy � verify �publish ☺

28 (1.1w)

Domain Configuration Locking ☺

• Config management (‘lock & edit’)

• Always enabled on production mode domain(optional in dev)

• Changes propagated to all servers on activation

• Compare previous configurations

• NB: lock for console vs WLST sessions!

29 (1.1w)

Logging

• See <domain>/logs/wl_server.log

• Also available in Admin Console

30 (1.1w)

Odds ’n Ends

• Oracle Guardian

– Best Practice analyzer

• Industry-leading clustering

– not unusual to have large WLS server farms

– see Phil Aston’s session at next SIG (18th June)

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

6

31 (1.1w)

Summary

• WLS – ‘different but the same’

• Installer offers similar capabilities to OAS

• Powerful WLST scripting environment

• Useful config. management features

• Clever deployment control

���� WLS will be JEE server for OFM 11g ����

32 (1.1w)

Any questions ?

Thank you for listening !

OFM blog: simonhaslam.co.uk

If you liked this presentation…UKOUG App Server & Middleware SIGThursday 18th June, Oracle BVP (Solihull)

WebLogic & OFM 11g theme