10 things you should know about oracle weblogic server 12c · 20.11.2012 1 10 things you should...
TRANSCRIPT
![Page 1: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/1.jpg)
20.11.2012
1
10 Things You Should Know About ORACLEWebLogic Server 12cDOAG 2012 Dr. Frank Munz Nov 2012
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 1munz & more
#0introduction
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 2
introduction
![Page 2: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/2.jpg)
20.11.2012
2
Who is this guy?
• Frank Munz
• Founded munz & more in 2007• 12+ years WebLogic Server and
Oracle Fusion Middleware
C lti d Hi h E d T i i
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 3
• Consulting and High‐End Training
• NEW book: “WebLogic 12c: Advanced Recipes”
10 things, no agenda
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 4
no agenda
![Page 3: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/3.jpg)
20.11.2012
3
#1#1
JDK 7
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 5
JDK 7
JDK 7
• WLS 12c still bundled with JDK 6WLS 12c still bundled with JDK 6
• Certified and running with JDK 7
• No JRockit 7 ‐> merged with Sun JDK
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 6
• JDK 6 EOL postponed fromJuly 2012 to November 2012 (now!)
![Page 4: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/4.jpg)
20.11.2012
4
SPECjbb2000: Out‐of‐box performance
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 7
JDK7?
JDK 7
• New tooling: jcmdg j
• Oracle was slow in fixing security issues:http://immunityproducts.blogspot.de/2012/08/java-0day-analysis-cve-2012-4681.html
• JDK 7 language featureswww.youtube.com/watch?v=7nkB3hxH5po
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 8
• When starting with WLS 12c –why still using JDK 6?
![Page 5: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/5.jpg)
20.11.2012
5
#2
configuration
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 9
management
DOMAIN / Config / General / Adv
• Default: Off ‐> Turn it on!
•
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 10
Every change creates and rotatesconfig.jar under DOMAIN_DIR/ConfigArchive
![Page 6: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/6.jpg)
20.11.2012
6
#3#3
node manager
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 11
node manager
Node Manager
M hi 1 M hi 2Machine1 Machine2
DomainAAdminServer
ManagedServerA
AdminConsole SSL
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 12
Node‐manager
Node‐manager
![Page 7: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/7.jpg)
20.11.2012
7
Node Manager
• Default now: StartScriptEnabled=true
• SSL for NM is still default: conflicts with generated X509 demoCert
• DisableHostnameVerifier not best solution!
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 13
• CrashRecoveryEnabled default is off ‐> turn on• More? My Blog: www.munzandmore.com/blog
#4
development:
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 14
EJB
![Page 8: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/8.jpg)
20.11.2012
8
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 15
One file only, deploys as web archive
#5#5
Servlets + RESTful
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 16
web services
![Page 9: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/9.jpg)
20.11.2012
9
Servlet 3.0 + JAX‐RS 1.1 in WLS12c
• Servlets with @Servlet, without web.xml
• RESTful web services: POJOs + annotations
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 17
Recommended Read: A. Gupta. Java EE 6 Pocket Guide
#6#6
WLS 12c RESTful
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 18
management
![Page 10: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/10.jpg)
20.11.2012
10
MBean ServersOracle WebLogic JVMJMX
JVM Platform MBean ServerJMX
JSR 160 RMI Connector
Edit MBean Server
Runtime MBean Server
DomainRuntime MBean Server
RESTf l
MBean
Admin
RMI Client running in JVM
HTTP
JMX
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 19
RESTfulConnector
MBean MBean
Admin
Admin
Web browser, command line,any language
HTTP
RESTful Management Service
• Enable it under:
DOMAIN / General / Config / Adv.
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 20
![Page 11: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/11.jpg)
20.11.2012
11
Monitoring URLs
• Example:
http://localhost:7001/management/tenant‐monitoring/servers/AdminServer/
or: applications|clusters|datasources
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 21
(but nothing else)
• AJAX Test Client:
http://localhost:7001/management/ajaxtest.html
#7
j4psh
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 22
(open source)
![Page 12: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/12.jpg)
20.11.2012
12
Complete RESTful Management
• Retrieves every MBean and every attribute
• Bulk requests
• Supports almost every appserver, Mule, etc.
• JMX‐shell “like WLST online”,
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 23
,with syntax highlighting and tab‐complet___
• You have to understand your MBean names
Jolokia
• Access via Java agent
• Deploy simple .war file
• Use it as proxy
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 24
![Page 13: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/13.jpg)
20.11.2012
13
Demo JMX‐Shell
• Use j4psh to examine GC problem
• JDBC Demo:http://www.youtube.com/watch?feature=player_detailpage&v=v13fgLNvezk#t=12s
• Oracle DevCast: j4psh with custom MBeans:
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 25
• Oracle DevCast: j4psh with custom MBeans:http://event.on24.com/r.htm?e=535211&s=1&k=C3C2FD74F5C578D7A01257D70FF828F0&partnerref=WLS_Dev_9_MunzNL_11132012
Demo RESTful Jolokia
• Trigger gc from browser:http://localhost:7001/jolokia/exec/java.lang:type=Memory/gc
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 26
• Read valuehttp://localhost:7001/jolokia/read/java.lang:type=Memory
![Page 14: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/14.jpg)
20.11.2012
14
more …
• j4psh shows WebAppComponentRuntime for deployed application
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 27
#8#8
precompile
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 28
precompile
![Page 15: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/15.jpg)
20.11.2012
15
Before or After Deployment?
Don’t use
<precompile>
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 29
<precompile>
in weblogic.xml
Before or After Deployment?
• Use weblogic.appc from commandline, Maven, Ant, …
• Your are wasting time and money without!
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 30
…. how much exactly?
![Page 16: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/16.jpg)
20.11.2012
16
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 31
store time in session retrieve time& calculate difference to local time
#9
I can hack your
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 32
password!
![Page 17: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/17.jpg)
20.11.2012
17
Case I: Picture this …
• Multi‐project machine
• User per project
• Installation user for WebLogic in MW_HOME
• All users in same group: > j t d & t MW HOME
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 33
‐>project user can read & execute MW_HOME
orange:oracle \domain\orangeblue:oracle \domain\blue
Case II
too complicated?
‐> assume you forgot your
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 34
password ;)
![Page 18: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/18.jpg)
20.11.2012
18
Passwords
• Stored in WLS internal LDAP, one way SHA algorithm (one way!)
• … but also in boot.properties, etc.
‐> Not hashed, but AES or 3DES encrypted
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 35
• Can be decrypted …
Recover Password
Required Files:
• SerializedSystem.ini (SALT file for encryption)
• Any other file containing a passworde.g. boot.properties, config.xml, jdbc_conf.xml
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 36
then use WLST decrypt() …
![Page 19: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/19.jpg)
20.11.2012
19
For the Script Kiddies
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 37
#10
Proxy Plugin
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 38
for LB is missing
![Page 20: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/20.jpg)
20.11.2012
20
Location for WLS 10.3.6
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 39
#11
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 40
![Page 21: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/21.jpg)
20.11.2012
21
try itThe most comprehensive Oracle applications & technology content under one roofmunz & more slide # 41
y
remember: my no-nonsense & live cloud presentation
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 42
cloud presentationtomorrow
![Page 22: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/22.jpg)
20.11.2012
22
facebook.com/cloudcomputingbookfacebook com/weblogicbookfacebook.com/weblogicbook
@frankmunz
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 43
youtube.com/weblogicbook
over 30 WLS videos for free!
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 44
![Page 23: 10 Things You Should Know About ORACLE WebLogic Server 12c · 20.11.2012 1 10 Things You Should Know About ORACLE WebLogic Server 12c DOAG 2012 Dr. Frank Munz Nov 2012 munz & more](https://reader034.vdocument.in/reader034/viewer/2022051602/5ae5c0e57f8b9a87048d09b9/html5/thumbnails/23.jpg)
20.11.2012
23
more recipes you don’t want to miss!
available for preorder:
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 45
Link to Amazon
munz & more blog:www.munzandmore.com
The most comprehensive Oracle applications & technology content under one roofmunz & more slide # 46
www.munzandmore.com