3. Who Am I ?
Founder/CEO for Gurus Solutions company.
Leader & Director for JAOUG.
Oracle ACE Director.
Certified OCP,OCE,OCS 10g,11g
Certified Ethical hacker / LPT
Sun / Linux Certified
Author Of Oracle Penetration testing book, Now Working on
2nd one.
Presenter & Contributor in Oracle Community .
Published Articles in different Magazine.
Blogger.
7. Domain
Domain
◦ Grouping of config/resources for an environment
◦ Has one set of administrators/security privileges
◦ Supports one major release of WebLogic at a time
◦ Is run in either ‘Production’ or ‘Development’ mode
Consists of
o Server
o Cluster
8. Server
• Server is where we :
• Deploy Enterprise Applications or Web Applications.
• Create JDBC Resources.
• Create JMS Resources.
• Two Weblogic Server type:
• Admin Server
• Managed Server
9. Admin Server
• Only ONE per domain.
• Controls start and stop of other servers in the Domain.
• Manages the creation of JDBC, JMS and other resources.
• Manages the deployment to servers in the domain.
• In development we use Admin Server for Deployment and Testing. This is
usually done via the Integrated WebLogic instance installed within
JDeveloper.
10. Managed Server
• Managed Server is an instance of WebLogic Server Managed by an Admin
Server.
• Managed Servers in a Domain are Independent of each other, in every
aspect.
• Applications Deployed in a Managed Server do not share any resources,
including JDBC and JMS Connections and Connection Factories.
• Configuration changes are send over to the Managed Server from the Admin
Server.
12. Node Manager
• Process to Start/Stop Managed Server instance on a Physical Machine.
• Connect to Admin Server and starts/stops WebLogic instance based
• Independent of Domain
• Default port 5556.
• Check the port using netstat –anp | grep port#.
13.
14.
15. Weblogic Installation
• Install JVM Depend on version.
• 2. Install a Middleware Home and WebLogic
• 3. Configure a Domain
Note: I usually install the JVM and use the generic
.jar installer (i.e. same for all platforms) rather than
using installer bundled with a JVM
16. Note about Install JVM
Sun HotSpot or JRockit (being merged in Java7/8), or JVM for
your platform (e.g. IBM or HP).
JRockit specific:
Don’t install demos & samples/source code
You probably don’t want JRockit as the public JRE
17. Install Weblogic
Command line :-
java -jar wls_version_generic.jar
Don’t forget WLS has PSUs (e.g. 10.3.6.0.3) and quarterly SPUs (fka
CPUs)
See the screens
18.
19.
20.
21.
22. Configure a Domain
You use the config wizard to create domains
◦ $WL_HOME/common/bin/config.sh (.cmd)
◦ there are several other methods too
23.
24.
25.
26.
27. Weblogic Cluster
• Scalability
• Load Balance
• Even distribution of jobs
• Multiple copies of an object that can do a particular job must be
available
• High-Availability
• Failover
• When a object processing a job becomes unavailable, a copy of the
object elsewhere takes over and finishes the job
29. Stand Alone
High Availability
Another feature in Cluster Called Scalability
Node with
OFM
No System
Active Passive
Active Active
Active Active Active Active
31. Active-Passive (Bad & Good)
• Cost.
• Easier configuration & administration.
• Provide availability for Application.
• No Additional H.W Cost ( Two Nodes ).
• Failover Time.
• Second node will not be used.
• Does not scale
32. Active-Active ( Bad & Good)
Not all the application load is hosted by a single server.
No Time For Failover.
Flexibility to scale up.
Load balancers improve manageability by routing application
deployment and system configuration requests to the most available
node.
• Cost
• complexity mean more maintaining and
administering
33. WebLogic & Java EE Compatibility
• WebLogic 11g - JEE 5 Certified
• WebLogic 12c - JEE 6 Certified
• Java EE 6
• JSP 2.1, JSF 2.0
• EJB 3.1, JPA 2.0
• Context and Dependency Injection
• Restful Web Services
• Weblogic 12cR2 - Java SE Development Kit 8
• Always check certification martix
40. Managing Weblogic
Admin console is usually starting point
Processes to check
java for admin server & managed server
Admin & Managed server logs are under:
DOMAIN_HOME/servers/<name>/logs
43. WebLogic Scripting Tool / wlst
interface that system administrators and operators use to monitor and manage
WebLogic Server instances and domains.
WLST scripting environment is based on the Java scripting interpreter, Jython.
use common features of interpreted languages, including local variables,
conditional variables, and flow control statements
WebLogic Server developers and administrators can extend the WebLogic scripting
language to suit their environmental needs
44. Benefits of Wlst
Retrieve domain configuration and runtime information.
Edit the domain configuration and persist the changes in the domain's
configuration files.
Automate domain configuration tasks and application deployment.
Control and manage the server life cycle.
Access the Node Manager and start, stop, and suspend server instances
remotely or locally, without requiring the presence of a running
Administration Server.
Can be used Online and offline.
45. Summary
WebLogic is a java application server.
All WLS processes run on a JVM.
Middleware home is static; domain home contains config and logs.
WLS Console is usually first point of contact (though don’t forget about
WLST for automation).
OEM 12c runs on WebLogic but the installer now does the WLS set up
work for you
46. Twitter : @OsamaOracle
My Blog : Osamamustafa.blogspot.com
Linkedin :- https://jo.linkedin.com/in/osamamustafa
Or
Google Me : Osama Mustafa Oracle