Transcript of "Weblogic 11g admin basic with screencast"
weblogic 11g admin Introduction Installation of weblogic 11g Creation and configuration of Admin server with three managed server Creation of And Configuring Machines in Weblogic Server Administering Managed Server With Node ManagerIntroductionWhat is Oracle Weblogic 11g ? Oracle WebLogic Server 11g is a component of Oracle Fusion Middleware 11g, which consists of several Oracle products that span o business intelligence, o collaboration tools, o content management, o and integration services. The underlying application server supporting these middleware applications is Oracle WebLogic Server 11g. Products such as Oracle SOA Suite and Oracle Fusion applications rely on Oracle WebLogic Server 11g to run their code 3 products as part of the Oracle WebLogic Server 11g family: Oracle WebLogic Server Standard Edition (SE) full-featured server, but is mainly intended for developers to develop enterprise applications quickly.
WebLogic Server SE implements all the Java EE standards and offers management capabilities through the Administration Console. Oracle WebLogic Server Enterprise Edition (EE) Oracle WebLogic Server EE is designed for mission-critical applications that require high availability and advanced diagnostic capabilities. EE version=SE version+ clustering +various diagnostic tools. Oracle WebLogic Suite Oracle WebLogic Suite offers support for dynamic scale-out applications with features such as Oracle WebLogic Suite=EE version + in-memory data grid technology + comprehensive management capabilities. It consists of the following components Oracle WebLogic Server EE Oracle Coherence (provides in-memory caching) Oracle Top Link (provides persistence functionality) Oracle JRockit (for low-latency, high-throughput transactions)Now lets discuss some common termnologies relation to oracle weblogic WL server Admin server Managed Server Cluster
what is Weblogic Server means? Note that Weblogic server and Weblogic Server instance is one and the same thing ! WebLogic Server Instance It is JVM process that runs the Java code. The instance is the actively working component, receiving client requests and sending them on to the appropriate components, and sending the processed requests back to the originating clients. The server instance manages the resources necessary for applications, such as the JTA and JDBC services, to function. In each domain, one instance serves as the Administration Server, which is your primary means of managing the domain. The rest of the WebLogic Server instances are called Managed Servers. If you have a domain with just one WebLogic Server instance, as is the common case in a development environment, the single server instance functions as both the managed server and admin server WebLogic Server Domain A WL server domain is a set of WebLogic Server instances that you manage with the Administration Server (Also an WL instance)
Why to create an domain?Ease of admin Configuration done on domain applied on each managed server ...no need to configure managed server separatly...Each domain has one and only one Admin Server which isused to configure all the managed serverA domain lets you easily deploy applications across multiple WebLogicServer instances located on heterogeneous servers and multiple networks,with varying physical and network descriptions.Administering a domain makes it easy for you to configurehigh availability with the help of multiple WebLogic Serverinstances and administer various services spread across heterogeneous host serversWhat domain includes?1 admin serverN managed serverApplication components that we deployServices required by the all managed server
Domain=1 Admin server + N managed servers(including those configured into WebLogic clusters) + machines (servers) + and all the services necessary to run your applications.How Admin and Managed server related?Each Managed Server has local copy of its domain configuration.Upon startup, it synchronizes its configuration with the Admin Server.Similarly, when you make domain configuration changes on the Admin Server,those changes are propagated to the Managed Server’s configuration.Administration ServerRemember server is an instace of WL server that run in its own JVMNow Admin server is an special instance of WebLogic Server designedfor managing the domain rather than running applications.There is a one-to-one relationship between domains and the Admin Server an Admin Server belonging to Domain A can’t manage Domain B managed server
Not WE CAN DEPLOY USE APPLICATION ON ADMIN SERVERIT MUST BE AVOIDED ON PRODUCTION SYSTEM ENVIRONMENTOK FOR DEVELOPMENT ENVERIONMENTWhat is admin consol?The Admin Server hosts the Administration Console,which is a web application front end used for configuring, monitoring,and managing a domain.You can access the Administration Console with anysupported browser that can access the Admin Server.All WebLogic system administration tools andAPIs interact with the Admin Server.Managed ServerA Managed Server hosts your Java EE applications, as well as all relatedresources and services such as Java Database Connectivity (JDBC)connection pools and data sources, Java Transaction API (JTA)transaction services, and Java Messaging Service (JMS) connectionfactories that are necessary to support application deployments.
*Any additional servers you create after the creation of the default Admin Server are Managed Servers. *The Managed Server contacts the Admin Server, only when you start it up, to get the configuration and deployment settings. thats why we should always start up the Admin Server before you start a Managed Server. Once a Managed Server starts running, it operates completely independent of the Admin Server. Note: In Managed Server Independence (MSI) mode we can even run an Managed server without starting admin serverWebLogic Server Cluster ?first need to understand clustering? WL server cluster? group of WebLogic Server instances consisting of multiple Managed Servers that run simultaneously with same configuration and same application is deployed? clustered application response to http server through a load balancer
Load balancer? third party plugin... Why? To increase reliability and scalability through load distribution and high availability. The load balancer handles the HTTP requests after the requests pass through a firewall. Cluster members pass replicated copies of objects such as HTTP sessions among themselves to provide the failover capability for the cluster. Each domain consist of own set of resources such as jdbc ,jta, jms that is not shared among other domains.......Node Manager? The Node Manager is an optional process that runs on a machine and manages the availability of all servers that run on that machine. Node Managers help you remotely start, stop, suspend, and restart Managed Servers.Machine? PC What is the context of machine in world of WL server? A machine is logical representation of the computer that hosts one or more WebLogic Server instances (servers).
A machine could be a physical or virtual serverthat hosts an Admin or Managed Server that belongs to a domain.We must define a machine first if you want the Admin Server touse the Node Manager service to monitor, start,and stop the Managed Servers running on a server.In a sense, a machine in a WebLogic Server environment is more orless equivalent to an instance of a Node Managerand this is essentially the concept that a machine represents.WebLogic clusters make use of the machines you define inorder to decide the optimal way to replicate session data ona different server that is part of a cluster.
Installation of WL 11gInstallation options 1. graphical mode which is an interactive mode. 2. The console mode interactive mode, but is run from the command line. 3. The silent mode noninteractive mode of installation, where you can use a script or a text file when you need to install WebLogic Server on many hosts. We choose option 1 ie. graphical option simple... *Download Oracle WebLogic Server 11gR1 (10.3.4) + Coherence + OEPE - Package Installer from oracle site. Zip installation (small size) but only for development purpose Need jrocket jdk seperatly need Derby seperatly *Double click *Welcome screen =====> choose middleware directory(keep default) ====>disable registration ======>installation type custom (we want sample example)
======>check Server Example from the list next...next ...next ... Dont Run Quickstart check Now..Exploring what has been installed?*********************************
Exploring the Installation Directories********************************************
WebLogic Server Domain DirectoryOracle recommends that you start working with the wl_server domain tounderstand the basics of Java EE programming and Oracle WebLogic Server. it’s a good idea to check out the Avitek Medical Records and theAvitek Medical Records (Spring) sample applications.
Both of these present you a realistic example of how to developand deploy full-blown Java EE applications.The two applications also serve as great learning tools forJava EE developers as well as for WebLogic Server administratorswho wish to understand application deployment conceptsNow starting example server ie admin server for wl_server domainit start server and dbderby database in seperate console...check admin console.....
login with UserName: weblogic Password: welcome1Stopping admin serverclick stopWeblogic.cmd......
Navigating the Administration Consoleopen weblogic server admin again...How?click startweblogic.cmd....then login..Now focus highlighted area...click server to see confugred server, at this moment only one ie exampleServer(admin)
creating /deleting WL server domaincreating wl server domainWe are going to create one admin server and two managed server1 admin serverN managed servergo to C:OracleMiddlewarewlserver_10.3commonbinthat contain tools/script to create domainrun config.execonfig wizard pops up...click next...
choose next...select an suitable domain name and next....
provide name and passwordeg name: weblogicpassword: welcome1click next.......choose production mode....
click ok...it will create domain.check directory structure where it create domain.click start WebLogic.cmd
console start up ..provide un and pw used during installationhttp://localhost:7001/console/login/LoginForm.jsplogin screen open ..provide un and pw again.
Now how to delete WL domain--------------------------------------Just delete directory where it is installed, no need to uninstalled it.Also change:One configuration file where i need to delete entery for WL domainwe just need to delete entry form nodemanager.domainsand thats all domain is deleted...
Now we have two managed server ie rg_ms1 and rg_ms2lets now configure themmanaged server actually host jee applications, ws, have confugraiton of jdbc,jms and jtaresources...while admin conf for management only.Now under rg_domain i am going to configuration of managed server ie rg_ms1 and rg_ms2different way to configure managed server in WLGo to home page--->Now we can set configuration setting for rg_ms1
click lock and edit button, we obtain an lock on the editiable connection of mbean.changes donot effect immedetly ...Now do some R&D lets say changing SSL listnen port to 7004, click save.Do same with rg_ms2We can also create managed server nowlets say rg_ms3...do same with it...
now click view changes and restart for summery of changes done...then activate all changes if all is okMay /May not need to restart server...How to manages machine in domain?Now we have one admin server rg_domainand three managed server rg_ms1,rg_ms2 and rg_ms3What is machine?computer that host wl server instance.Why we must have configuration of machine?To understand it lets consider following diagram:As shown in fig we have configure an domain on two machine(two physical machines)
with one admin server and three managed server in an clusternow if serverA is down then due to machine failure then it is sure that serverB would also bedownso if serverC is not configred on seperate machine how we ensure avability of application toour client?Session migration form serverA to serverB is useless in case of machine1 failure....What is WL sever...nothing but JVM process running in our system.Now lets see how to configure machine on WL servergo to home===>choose machine from left pan======>Now create new machines
create another machine rg_mach2Now we have created two machines rg_mach1 and rg_mach2Now we need to configruation of these machines=========================================Now we want to assigned managed server lets say rg_ms1 to rg_mach1 and rg_ms2 andmg_ms3 to rg_mach2Now start configuration for rg_mach1
Assigning servers to this machine.....click sreversassigned rg_ms1 to machine1 as planned.click finished.SImlarly configure machine 2 with rg_ms1 and rg_ms2
Admin managed server with the help of Node manager==============================================What is node manager?configuration ?how to use it to configure manged server?We have 3 managed server with two machines configured in last excerciseNow We will create two node manager for two machinesWhat is an node manager====================seperate process that can be used to remotely start WL server instance ....It is not associated with any particular domainWhy we need it------------------- to use admin console to start servers Automatic server migration (more latter.....)Two version of Node manager----------------------------------------- Java based Script based: only available for Unix
Node manager must be configure on each machine for management purposeNow steps to create node manager for each machine-----------------------------------------------------------------------------select rg_mach1 ---> then click node manager....
for second Node manager change port to 5557 to avoid conflictActivate changesNow We configure node managerGo to C:OracleMiddlewarewlserver_10.3commonbinand run wlst.cmd
So it start WLS in offline mode (two modes: offline and online )Using this tools i can configure Node manager..........Now run commandconnect(weblogic,welcome,t3//localhost:7001)
Now give command:nmEnroll(C:/Oracle/Middleware/user_projects/domains/rg_domain,C:/Oracle/Middleware/wlserver_10.3/common/nodemanager)nmEnroll(domain_home, nodeManager_home) where domain_home is the root of your domainand nodemanager home is where your running the nodemanager from.Running nmEnroll() ensures that the correct Node Manager user and password token aresupplied to each Managed Server. Once these are available for each Managed Server, you canuse nmConnect() in a production environment.Now we have successful enrol machine with domain directoryNow we need to add classpath to each managed server.............CLASSPATH=C:OracleMIDDLE~1patch_wls1035profilesdefaultsys_manifest_classpathweblogic_patch.jar;C:OracleMIDDLE~1patch_oepe172profilesdefaultsys_manifest_classpathweblogic_patch.jar;C:OracleMIDDLE~1patch_ocp360profilesdefaultsys_manifest_classpathweblogic_patch.jar;C:OracleMIDDLE~1patch_adfr1111profilesdefaultsys_manifest_classpathweblogic_patch.jar;C:OracleMIDDLE~1JDK160~1libtools.jar;C:OracleMIDDLE~1WLSERV~1.3serverlibweblogic_sp.jar;C:OracleMIDDLE~1WLSERV~1.3serverlibweblogic.jar;C:OracleMIDDLE~1modulesfeaturesweblogic.server.modules_10.3.5.0.jar;C:OracleMIDDLE~1WLSERV~1.3serverlibwebservices.jar;C:OracleMIDDLE~1modulesORGAPA~1.1/lib/ant-all.jar;C:OracleMIDDLE~1modulesNETSFA~1.0_1/lib/ant-contrib.jar;.;;C:OracleMIDDLE~1uti
lsconfig10.3config-launch.jar;C:OracleMIDDLE~1WLSERV~1.3commonderbylibderbynet.jar;C:OracleMIDDLE~1WLSERV~1.3commonderbylibderbyclient.jar;C:OracleMIDDLE~1WLSERV~1.3commonderbylibderbytools.jar;;Now we have to start each managed server......go to ......C:OracleMiddlewareuser_projectsdomainsrg_domainbinand runstartManagedWebLogic.cmdNow we need to provide requested informations
startManagedWebLogic.cmd rg_ms1 http://localhost:7001Enter un and pw that used while installation of Admin server..........managed server started....do similarly for other managed server.startManagedWebLogic.cmd rg_ms2 http://localhost:7001startManagedWebLogic.cmd rg_ms3 http://localhost:7001
Now Question is how to use node manager to start managed server from web consoleNow force shut down all the managed server , we will start them using node manager.Now shutting down rg_ms3Click rg_ms3Then click control
Choose force shut downDo it for all managed server one by one……..Now open an new console to start Node manager so that we use it to control managed servers.Go toC:OracleMiddlewarewlserver_10.3serverbinAnd run startNodeManger.cmdNow start another node manager for rg_ms2 and rg_ms3Open new console …repeat same procedure
Now try to start managed server from web console.And finally started message appear.