1. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
12 Things about â¨
Oracle WebLogic Server 12c
OTN Latin America Tour 2015 / Oracle Open World 2014
â¨
Dr. Frank Munz â¨
munz & moreâ¨
â¨
with David Cabelus
Oracle WebLogic Server Product Management
1
2. Whoâs that guy?
⢠Dr. Frank Munz!
⢠Founded munz & more in 2007!
⢠15 years Oracle WebLogic â¨
and Middleware!
⢠Consulting and â¨
High-End Training!
⢠Three Oracle / Cloud â¨
books !
2
3. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
What weâre going to talk aboutâŚ
1
2
Why upgrade to WebLogic 12.1.3
12 things you should know about WebLogic 12c
3
4. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended
for information purposes only, and may not be incorporated into any contract. It
is not a commitment to deliver any material, code, or functionality, and should
not be relied upon in making purchasing decisions. The development, release,
and timing of any features or functionality described for Oracleâs products
remains at the sole discretion of Oracle.
4
5. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.1.1
⢠Java EE 6
⢠Lightweight Zip Installer
⢠Maven integration
⢠Coherence/Toplink
integration
WebLogic Server 12.1.2
⢠DB Integration
⢠Dynamic Clusters/Elastic JMS
⢠Unified Management
⢠Exalogic Optimizations
!
⢠Websockets
⢠Toplink Data Services
⢠More Maven Integration
WebLogic Server 12.1.3
⢠JAX-RS 2.0 (Java EE 7)
⢠JSON (Java EE 7)
⢠RESTful Management APIs
⢠HA Optimizations
!
!
⢠Fusion Middleware
⢠Websockets Update (Java EE
7)
⢠Emulation Client/Server-
Sent Events
⢠Maven WLST Goal
Why Upgrade to WebLogic 12.1.3â¨
5
6. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.1.3â¨
Mobile App Enablement, Developer Productivity
WLS12.1.3Clients
HTML5
clients
ADF Mobile
Proxies
OTD
Apache
OHS
Web Sockets (JSR
356)
TopLink Data
Services
Server-Sent Events
JAX-RS 2.0
WebSocket Emulation
WebSocket
Emulation
JAX-RS 2.0, WebSocket 1.0
JSON Programming API
JPA 2.1
Server-Sent Events
WebSocket Emulation
JPA-RS
JPA
Changeâ¨
Notification
Database
JSON Programming
API
HTTP/S, JSON/XML
WebSocket, Server-
Sent Events, Long
polling
Java EE 7
APIs
Additional
WebLogic
Value-Add
6
6
7. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Seamless Upgrade
Prior WebLogic â¨
Server Versions
JBossâ¨
WebSphere
Migration Services
GlassFish
Simple Upgrade Redeployment
Internetâ¨
Application Server
Automated Tooling
10. munz & more
New Installer
⢠OUI â consistent with OFM and Oracle DB!
⢠Java is not included!
⢠No console mode anymoreâ¨
-> silent mode with response file
Other
options:
Vagrant
with Chef
or Puppet,â¨
maven and
even
Dockerjava âjar fmw12.1.3.0.0_wls.jar âsilent â¨
âresponseFile fullPathToRespFile âinvPtrLoc /etc/oraInst.loc
10
11. munz & more
The oraInst.loc File
oraInst.loc points to product inventory:!
!
!
!
location depends on OS, e.g. OS X:!
/var/opt/Oracle
11
13. munz & more
Prerequisite Checks
⢠CPU with 0 MHz ?!â¨
-> wrong BIOS selectionâ¨
in Virtual Box!
⢠swap enabled ?!
⢠/tmp on tempfs ?â¨
check size in /etc/fstab"
⢠Ignore result of check (NOT recommended):â¨
-ignoreSysPrereqs
13
14. munz & more
opatch
⢠Located in WEBLOGIC_HOME/Opatch"
⢠Uses oraInst.loc"
⢠opatch uses ORACLE_HOME variableâ¨
â¨
make sure it does not conflict with
ORACLE_HOME of an installed DB â¨
-> different installation user
14
19. munz & more
Per Domain Node Manager
⢠Easier setup!
⢠Config and logs part â¨
of domain directory!
⢠Uses SSL per default!
⢠unpack recreates â¨
demo certs!
⢠Startscript: â¨
DOMAIN_HOME/bin/startNodeManager.sh
19
20. munz & more
Per Domain Node Manager
⢠DOMAIN_HOME/nodemanager contains
nodemanager.properties and
nodemanager.domains "
!
⢠Per machine NM still possible:â¨
startNodeManager.sh â¨
in WL_HOME/server/bin
20
21. munz & more
Certificates
Demo Cert per Domain under DOMAIN/security
keytool âlist -storepass DemoIdentityKeyStorePassPhrase âv â¨
-keystore DemoIdentity.jks
Certificate contains
hostname.
Unpack recreates Demo Cert
with hostname of new host.
21
22. munz & more
3 Simple Steps
1. Start Node Manager !
2. Create Machine!
3. Create Servers / Dynamic Clusterâ¨
and assign machineâ¨
Then use admin server web console to start
managed servers
22
23. munz & more
New in WLS 12.1.3"
Some nodemanager.properties names changed,
old names are deprecated now:â¨
â¨
StartScriptEnabled â¨
-> weblogic.StartScriptEnabledâ¨
â¨
also StartScriptName, JavaHome, StopScriptName,
UseMACBroadcast, âŚ
23
25. munz & more
Server Templates
st=create('myTemplateName','ServerTemplate')
MBean type ServerTemplate with name myTemplate has been created successfully.
st.setStartupTimeout(300)
25
26. munz & more
Examples
All managed servers should ...!
!
⢠have the same log level!
⢠have certain start up parameters
26
29. munz & more
How Dynamic Is It?
⢠Only configuration is dynamic!
⢠Must start servers manuallyâ¨
(dynamic runtime is still missing)!
⢠To decrease cluster size: â¨
stop last server, then decrease â¨
number of dynamic servers configuration
29
30. munz & more
What else you should know
Server Migration for dynamic and mixed cluster is
supported only with WLS 12.1.3!
!
-> Template based dynamic clusters are usually
easier than cloning a managed server
30
32. munz & more
New Unicast Groups"
Implementation in WebLogic 12.1.3 changed:!
⢠Fixed max # of groups is 10!
⢠Groups can by asymmetric!
⢠Servers are consistently placed in groups based
on hash of server name
32
36. munz & more
Easier JMS
⢠Target JMS server to cluster â¨
(also to dynamic cluster!)!
⢠Persistent stores are provisioned automatically !
⢠Then target distributed queue to JMS server
36
37. munz & more
Elastic JMS in WLS 12.1.3
⢠Supports whole server migration (WSM) with
WebLogic 12.1.3!
⢠Note, there are some restrictions: â¨
No Unit-of-Order, no Unit-of-Work, no service
migrationâŚ
see alsoâ¨
https://blogs.oracle.com/WebLogicServer/entry/introducing_elastic_jms
37
39. munz & more
Java Mission Control
Java Mission Control comes â¨
with JDK 1.7.0_40+ â¨
⢠Free for development !
⢠Ported over from JRockit!
⢠Detailed, graphical views!
-> start with jmc
39
41. munz & more
Java Mission Control
To enable JMC, you need the following switches!
JAVA_OPTIONS=â -XX:+UnlockCommercialFeatures â¨
" " " " " -XX:+FlightRecorder" â¨
e.g. configure settings inâ¨
DOMAIN_HOME/bin/setUserOverrides.sh â¨
Configure
WebLogic â¨
Domain-Wide
Settings here
41
46. munz & more
REST Management API
API has changed in WLS 12.1.3â¨
!
-> Supports configuration changes:!
⢠Server lifecycle!
⢠For resources, eg. JDBC data source: â¨
create, stop, test, âŚ,!
⢠Deployments
46
47. munz & more
REST Management API
Example http GET:â¨
â¨
http://localhost:7001/â¨
management/wls/â¨
latest/deployments/â¨
application
47
48. munz & more
http OPTIONS withâ¨
/management/wls/latestâ¨
/datasourcesâ¨
â¨
returns the default JSONâ¨
structure for data sourcesâ¨
-> Fill in the values and sendâ¨
it back to server
Generate Template / OPTIONS
48
49. munz & more
Create Data Source / POST
POST JSON data with all mandatory values toâ¨
/management/wls/latest/datasourcesâ¨
returns:
49
53. munz & more
New Maven Goal""
⢠25 maven goals for WebLogic 12.1.3!
⢠WebLogic 12.1.3:â¨
New maven WLST goal: wlst-client â¨
â¨
-> does not require local WebLogic installation
for WLST online commands.
53
57. munz & more
What is Docker?"
⢠NOT Now officially supported by Oracle!
⢠Sandboxing based on Linux containers!
⢠Layered images!
⢠Public / private repository!
⢠Containers start up in milliseconds!
⢠Portable standard -> â¨
runs on Linux, also in clouds
57