You are on page 1of 6

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

Simon Haslam / Veriton WebLogic Server: a comparison with Oracle Application Server
Simon Haslam
Specialised 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, )

Veriton Limited
Northern Technology SIG 28th April 2009
1 (1.1w) 2 (1.1w)

Agenda
1. Architecture 2. Installation 3. Getting Started

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
3 (1.1w) 4 (1.1w)

WebLogic Terms
Domain
abstract level set of WL resources, e.g. instances app requests

Architecture
managed server

machine

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

web server

managed server

node manager

Managed Server
An instance controlled by an Admin Server

admin console
admin server

Machine
Node Manager to manage WL servers

Clusters
can be set up across multiple Managed Servers domain
5 (1.1w) 6 (1.1w)

managed server

node

machine manager

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

Comparison of Terms
WebLogic Server Oracle Application Server

Installation
10g R3 has rebadged BEA installer BEA_HOME directory 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

domain

~farm

cluster contains several instances machine node manager server instance (one JVM) ~application server OPMN OC4J instance (one or several JVMs)

7 (1.1w)

8 (1.1w)

Running Installer
Graphical: Linux example
export DISPLAY chmod a+x server103_linux32.bin (if reqd) ./server103_linux32.bin

Installation Types
Complete
WLS, Workshop for WL, examples Sun JDK, JRockit JDK

Custom

Command line: -mode=console Silent: -mode=silent


-silent_xml=<path_to_silent.xml>

9 (1.1w)

10 (1.1w)

Basic Pre-Requisites
Supported Platforms:
RH EL 4/5, OEL 4/5 Solaris 8/9/10 Windows 2003 etc

Installation

Memory: 1GB min. (2GB recommended) Disk space: up to 1.8GB

11 (1.1w)

12 (1.1w)

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

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

Comparison of Installers
WebLogic Server Oracle Application Server

Graphical Text Mode Silent


BEA_HOME

Graphical Silent (ORACLE_BASE) arbitrary no. of installs


ORACLE_HOME

one install per product/version


WL_HOME

option of remote installs on headless servers

19 (1.1w)

20 (1.1w)

Getting Started
Default WebLogic home page
http://<host>:7001 or (https: 7002)

Management
Admin Console WebLogic Scripting Tool (WLST)
can also record scripts from console

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>

21 (1.1w)

22 (1.1w)

Starting/Stopping Server
Various options: (+stop) using WLST to start server directly using WLST to use NM to start server weblogic.Server in a Java command
<domain>/bin/startWebLogic.sh

WebLogic Scripting Tool


. $WL_HOME/server/bin/setWLSEnv.sh java weblogic.WLST
[oracle@westfield31 bin]$ . ./setWLSEnv.sh CLASSPATH= PATH= Your environment has been set. [oracle@westfield31 bin]$ java weblogic.WLST Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands wls:/offline> exit()

23 (1.1w)

24 (1.1w)

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

Node Manager
Start directly
$WL_HOME/server/bin/startNodeManager.sh

Configuring JDBC
Data sources
Use Oracle (i.e. third party) drivers

or using WLST
wls:/offline> startNodeManager()

Multi-data sources & RAC Connection testing Failure conditions

25 (1.1w)

26 (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

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!

Staged deployment allows deploy verify publish

27 (1.1w)

28 (1.1w)

Logging
See <domain>/logs/wl_server.log Also available in Admin Console

Odds n Ends
Oracle Guardian
Best Practice analyzer

Industry-leading clustering
not unusual to have large WLS server farms see Phil Astons session at next SIG (18th June)

29 (1.1w)

30 (1.1w)

Weblogic Server: a comparison with Oracle Application Server

Simon Haslam, Veriton Limited

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

Any questions ? Thank you for listening !


OFM blog: simonhaslam.co.uk If you liked this presentation UKOUG App Server & Middleware SIG Thursday 18th June, Oracle BVP (Solihull) WebLogic & OFM 11g theme
32 (1.1w)

31 (1.1w)

You might also like