12 things about oracle weblogic server 12c

60
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 12 Things about Oracle WebLogic Server 12c OTN La’n America Tour 2015 Dr. Frank Munz munz & more David Cabelus Oracle WebLogic Server Product Management 1

Upload: guatemala-user-group

Post on 07-Apr-2017

1.020 views

Category:

Technology


4 download

TRANSCRIPT

Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

12  Things  about    Oracle  WebLogic  Server  12c  OTN  La'n  America  Tour  2015  

 Dr.  Frank  Munz    munz  &  more    David  Cabelus  Oracle  WebLogic  Server  Product  Management    

1  

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  

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  

Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

Safe  Harbor  Statement  The  following  is  intended  to  outline  our  general  product  direcSon.  It  is  intended  for  informaSon  purposes  only,  and  may  not  be  incorporated  into  any  contract.  It  is  not  a  commitment  to  deliver  any  material,  code,  or  funcSonality,  and  should  not  be  relied  upon  in  making  purchasing  decisions.  The  development,  release,  and  Sming  of  any  features  or  funcSonality  described  for  Oracle’s  products  remains  at  the  sole  discreSon  of  Oracle.  

4  

Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

WebLogic  Server  12.1.1  •  Java  EE  6  •  Lightweight  Zip  Installer  •  Maven  integraSon  •  Coherence/Toplink  integraSon  

WebLogic  Server  12.1.2  •  DB  IntegraSon  •  Dynamic  Clusters/ElasSc  JMS  •  Unified  Management  •  Exalogic  OpSmizaSons  

•  Websockets  •  Toplink  Data  Services  •  More  Maven  IntegraSon  

WebLogic  Server  12.1.3  

•  JAX-­‐RS  2.0  (Java  EE  7)  •  JSON  (Java  EE  7)  •  RESTful  Management  APIs  •  HA  OpSmizaSons  

•  Fusion  Middleware  •  Websockets  Update  (Java  EE  7)  •  EmulaSon  Client/Server-­‐Sent  

Events  •  Maven  WLST  Goal  

Why  Upgrade  to  WebLogic  12.1.3    

5  

Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

WebLogic  Server  12.1.3  Mobile  App  Enablement,  Developer  ProducSvity    

WLS12.1.3 Clients  

 HTML5  

 clients    

ADF  Mobile  

Proxies

OTD  

Apache  

OHS  

Web  Sockets  (JSR  356)  

TopLink  Data  Services  

Server-­‐Sent  Events  

JAX-­‐RS  2.0  

WebSocket  Emula'on  

WebSocket  

Emula'on  

JAX-­‐RS  2.0,  WebSocket  1.0  JSON  Programming  API  JPA  2.1  

Server-­‐Sent  Events  WebSocket  EmulaSon  JPA-­‐RS  

JPA  

Change  No'fica'on  

Database  

JSON  Programming  API  

HTTP/S,  JSON/XML  WebSocket,  Server-­‐Sent  Events,  Long  polling  

Java  EE  7    APIs  

AddiSonal  WebLogic  Value-­‐Add  

6  6  

12 things, no agenda ☺

#0 ... lots of changes

#1 OUI / opatch

opatch  for  WLS  

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  Docker  

java –jar fmw12.1.3.0.0_wls.jar –silent –responseFile fullPathToRespFile –invPtrLoc /etc/oraInst.loc

munz & more #10  

The oraInst.loc File

oraInst.loc points to product inventory:

location depends on OS, e.g. OS X:

/var/opt/Oracle

munz & more #11  

Prerequisite Checks

munz & more #12  

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

munz & more #13  

opatch

•  Located in WEBLOGIC_HOME/Opatch •  Uses oraInst.loc •  opatch uses ORACLE_HOME variable

make sure it does not conflict with ORACLE_HOME of installed DB -> different installation user

munz & more #14  

#2 Domain Wizard

config.sh

domain location includes domain name

-Dcom.oracle.cie.config.showProfile enables Compact/Expanded Domain Topology Selection (mainly for OFM)

munz & more #16  

config.sh Oracle  doc  WLS  12.1.1  

Instead use WLST, unpack, maven, …

munz & more #17  

#3 Per Domain

Node Manager Per  Domain  NM  

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

munz & more #19  

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

munz & more #20  

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.  

munz & more #21  

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

munz & more #22  

New in WLS 12.1.3

Some nodemanager.properties names changed, old names are deprecated now: StartScriptEnabled -> weblogic.StartScriptEnabled also StartScriptName, JavaHome, StopScriptName, UseMACBroadcast, …

munz & more #23  

#4 Server Templates

Server  Templates  

Server Templates

st=create('myTemplateName','ServerTemplate') MBean type ServerTemplate with name myTemplate has been created successfully.

st.setStartupTimeout(300)

munz & more #25  

Config Hierarchy

•  Default Server Settings (value not specified)

•  can be overwritten by Server Template Settings

•  can be overwritten by Individual Server Configuration

munz & more #26  

#5 Dynamic Cluster

Dynamic  Cluster  

Dynamic Cluster

munz & more #28  

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

•  Server Migration for dynamic and mixed cluster supported with WLS 12.1.3

munz & more #29  

#6 Unicast Groups

Unicast  Groups  

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

munz & more #31  

Classic Cluster Size 3

#32  

Dynamic Cluster Size 15

#33  

#7 Cluster Targeted JMS

Cluster  Targeted  JMS  

Easier JMS

•  Target JMS server to cluster (also to dynamic cluster!)

•  Persistent stores are provisioned automatically

•  Then target distributed queue to JMS server

munz & more #35  

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

munz & more #36  

#8 Java Mission Control

 JMC  and  JDBC  

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

munz & more #38  

Monitoring JDBC

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  

munz & more #40  

#9 WLDF Built-in

Modules

WLDF Diagnostic Module

WLDF Modules now easier: based on built-in

“Low” enabled by default in production mode

munz & more #42  

Predefined Watches (Medium)

munz & more #43  

#10 RESTful

Management  RESTful  Config  Part  I  /  Part  II  

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

munz & more #45  

REST Management API

Example http GET: http://localhost:7001/ management/wls/ latest/deployments/ application

munz & more #46  

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

munz & more #47  

Create Data Source / POST

POST JSON data with all mandatory values to /management/wls/latest/datasources returns:

munz & more #48  

Limitations

Some resources not supported yet in 12.1.3

•  JMS

•  Work Managers

•  WLDF

munz & more #49  

#11 Development

 Oracle  White  Paper  

Partial Support of Java EE 7 APIs

WebLogic 12.1.3:

•  Java API for WebSocket 1.0 NEW

•  JSON-P 1.0 NEW

•  JAX-RS 2.0 with lib deployed UPDATE JAX-RS 1.1. OOTB

•  JPA 2.1 with lib deployed UPDATE JPA 2.0 OOTB

deploy  /wlserver/common/deployable-­‐libraries/  jax-­‐rs-­‐2.0.war    

deploy  2  shared  libs  

munz & more #51  

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.

munz & more #52  

One more thing.

#12 Yes, Docker!

 WLS  and  Docker  

WebLogic  in  a  Docker  Container  

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

munz & more #56  

Dockerfile Dockerfile+Scripts        Oracle  blog  

DockerContainer  

Summary

1.  OUI / opatch

2.  Domain Wizard

3.  Per Domain Node Manager

4.  Server Templates

5.  Dynamic Cluster

6.  Unicast Groups

7.  Cluster Targeted JMS

8.  Java Mission Control

9.  WLDF Builtin Modules

10. RESTful Management

11. Development

12. Docker

munz & more #58  

gracias a ustedes!

Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

Oracle’s  WebLogic  blog    hjps://blogs.oracle.com/weblogicserver  

Facebook    hjps://www.facebook.com/oracleweblogic  

TwiVer  hjps://twijer.com/oracleweblogic  

YouTube    hjp://www.youtube.com/oracleweblogic    Developer  Webcast  Series  hjp://www.oracle.com/goto/weblogicdevcast    iLearning  Interac've  WebLogic  Server  12.1.3  new  features:  hjp://goo.gl/ESkvHj  

www.munzandmore.com/blog facebook.com/cloudcomputingbook facebook.com/weblogicbook @frankmunz youtube.com/weblogicbook

-> more than 45 WLS web casts