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
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
16. munz & more
config.sh
domain location
includes domain name
-Dcom.oracle.cie.config.showProfile
enables Compact/Expanded Domain Topology Selection (mainly for OFM)
16
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
52. munz & more
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
52
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