SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
WebLogic Server 11g for ADF/Forms
           Developers

                 Mark Prichard
    Java Platform Group, Oracle Fusion Middleware
              mark.prichard@oracle.com
The following is intended to outline our general
product direction. It is intended for information
purposes only, and may not be incorporated into
 any contract. It is not a commitment to deliver
 any material, code, or functionality, and should
    not be relied upon in making purchasing
                    decisions.
  The development, release, and timing of any
 features or functionality described for Oracle’s
   products remains at the sole discretion of
                      Oracle.
Oracle WebLogic Suite
                                                           Strategic Runtime Across Oracle Product Lines

                                            Java EE/ISV       SOA          WebCenter       Content    Identity             Business
                                               Apps           Suite          Suite       Management Management            Intelligence
                                                                                            Suite       Suite                 Suite




                                                                             WebLogic Suite
                                                                              WebLogic Server
Enterprise Manager
                     Admin and Operations




                                                                                                                                                              Development Tools
                                                          Java EE: Reliability, Availability, Scalability & Performance




                                                                                                                                         JDeveloper/Eclipse
                                                                                  Coherence
                                                      High Performance, Reliable, Scale Out for Java, C++ and .NET


                                                                             JRockit Real Time
                                                              High Performance JVM with Extreme Low Latency



 Proven to                                                                                                                         Best for
Outperform                                                                                                                      Oracle Portfolio

                                                                       Lowest Cost of Operations
Integrated WebLogic Server




•  http://localhost:7101/console/
•  Log on with weblogic/weblogic1
•  C:Documents and Settings<user>Application DataJDeveloper...
   DefaultDomainbin
•  (debug) -agentlib:jdwp=transport=dt_socket,server=y,address=1446
Domains and Servers
•  What is a domain?
  –  a logically related group of WebLogic Server instances that you
     manage from a single set of configuration artifacts.
•  What’s in a domain?
  –  Servers
  –  Clusters of servers
•  What is a WebLogic Server instance?
  –  A configured instance to host applications and resources
        •  WebApps, Enterprise Apps, Web Services, …
        •  JMS, JDBC, Diagnostics, …
•  What types of servers are there?
  –  Administration Server
  –  Managed Server
Creating/Copying a WebLogic Domain

•  Configuration wizard: include at least Oracle JRF
•  Many ways to copy a domain: domain template
   builder, pack/unpack, WebLogic Scripting Tool …
The Administration Server
•  What is it?
   –  Central configuration controller for the
      entire domain
•  What else does it do?
   –  Hosts the Administration Console
   –  Enables you to start and stop servers
      from a central location
   –  Enables you to migrate servers and
      services within the domain
   –  Enables you to deploy applications
      within the domain
•  Guidelines:
   –  There must be exactly one*
      Administration Server in domain
   –  An Administration Server controls only
      one domain.
   –  For production use, we recommend not
      hosting application logic or resources
      on the Administration Server
Managed Servers
•  What is it?
  – A running instance that hosts applications and
    resources needed by those applications - The real work
    horses in a WebLogic domain
  – Each Managed Server is independent of all other
    Managed Servers in the domain (unless they are in a
    cluster, defined later)
  – You can have as many Managed Servers in a domain
    as you need
  – Individual Managed Servers are typically added for
    capacity and application isolation
Managed Server Startup
•  The Administration Server stores the master copy of the
   domain configuration, including the configuration for all
   managed servers in the domain
•  Each Managed Server stores a local copy of its
   configuration.
•  When a Managed Server starts, it connects to the
   Administration Server to synchronize the configuration
•  When configuration is changed, the Administration Server
   sends changed configuration to Managed Servers
•  How do I start a Managed Server?
   –  With an Admin Server
   –  In “Independence Mode”
Clusters and Machines
•  A cluster is a group of Managed Servers running
   simultaneously and working together to provide increased
   scalability and reliability
•  A cluster appears as a single instance to most clients.
•  Clusters enable some advanced features, such as Whole
   Server Migration, Service Migration, and clustered JMS
   destinations.
•  A machine definition is used to associate a computer with
   the Managed Servers it hosts.
•  Used by Node Manager in restarting a failed Managed
   Server
•  Used by a clustered Managed Server in selecting the best
   location for storing replicated session data
Load Balancing in a Cluster
•  For JSPs and Servlets: load balancing is external
  –  Web server proxy plug-in (round robin)
  –  HTTP Proxy servlet (i.e., using WLS as a load balancer)
  –  3rd party hw or sw load balancer
•  EJBs and RMI Objects: load balancing is done at
   connection
  –  Objects are cluster-aware
  –  Load balancing algorithm is stored in the clustered object’s stub
  –  Objects are available on all cluster members; remote objects
     connect/use according the LB algorithm in the stub
  –  Load balancing algorithms: Round robin, weighted, random, server
     affinity
Failover in a Cluster

•  Servlets and JSPs:
  – HTTP session state is replicated to a secondary server
    in the cluster or to a database
•  EJBs and RMI Objects:
  – Replicas available throughout the cluster
  – Exceptions caught and retried on another instance
  – For Stateful Session Beans, state is replicated on a
    secondary server
WebLogic Node Manager

•  Utility/process running on a physical server that enables
   you to start, stop, suspend, and restart WebLogic Server
   instances remotely
•  Must run on each physical server that hosts WebLogic
   Server instances that you want to control with Node
   Manager
•  Not associated with a domain. Can start any server
   instance that resides on the same physical server.
•  Optional, but required to start/stop servers using the
   Administration Console
•  Required for Whole Server Migration and for some
   configurations of Automatic Service Migration
•  Demo: How do I configure Node Manager?
WebLogic Scripting Tool (WLST)

•  Scripting tool for administering a domain (create,
   configure, manage, monitor, deploy applications)
•  Based on Jython – pure Java implementation of
   Python
•  Great for automating repetitive tasks
•  Heavily used by customers and within BEA

•  Example: How does JDev shut down the
   Integrated WebLogic Server instance?
WLST: Connection Modes
•  Offline: analogous to the Configuration Wizard
  –  Uses the Offline Configuration Framework
     •  Also used by the Configuration Wizard
     •  Consistent results when using either tool
  –  read and write access to the configuration data that is
     persisted in the domain’s config directory or in a
     domain template JAR
  –  Intended to create a domain or modify a non-running
     domain
  –  Used during WLS install to create samples domains


•  Online: analogous to the Administration Console
  –  JMX client
  –  Interacts with a server’s MBeans
  –  Intended as a runtime management tool:
WSLT with OEPE 11.1.1.6
WLST – with SSL + Custom Trust
java -Dweblogic.security.TrustKeyStore=CustomTrust -
  Dweblogic.security.CustomTrustKeyStoreFileName=/home/
  oracle/security/labTrustKeystore.jks -
  Dweblogic.security.CustomTrustKeystoreType=JKS -
  Dweblogic.security.CustomTrustKeyStorePassPhrase=labpassw
  ord weblogic.WLST
wls:/offline> nmConnect
  ('oracle','oracle1','node1.localdomain',
  5556,'labDomain','/home/oracle/wls1032/user_projects/
  domains/labDomain','ssl')
wls:/nm/labDomain> storeUserConfig
  ('nm_user.config','nm_user.key',nm='true')

wls:/offline> nmConnect(userConfigFile=‘<path>/
  nm_user.config',userKeyFile=‘<path>/
  nm_user.key',host='node1.localdomain',port=5556,domainNam
  e='labDomain',domainDir=‘<path>/labDomain',mType='ssl')
Java Keystores for Dev/Test
[oracle@node1 security]$ java utils.CertGen -certfile labcert1 -keyfile
   labkey1 -keyfilepass labkeypass -cn "node1.localdomain" -o
   "MyOrganization" -ou "FOR TESTING ONLY" -keyusage
   digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgre
   ement
[oracle@node1 security]$ cp   /home/oracle/wls1032/wlserver_10.3/server/lib/
   CertGenCA.der .
[oracle@node1 security]$ java utils.der2pem CertGenCA.der
[oracle@node1 security]$ cat labcert1.pem CertGenCA.pem > cert1.pem
[oracle@node1 security]$ mv cert1.pem labcert1.pem
[oracle@node1 security]$ keytool -printcert -file labcert1.pem
[oracle@node1 security]$ java utils.ImportPrivateKey -keystore
   labIdentityKeystore.jks -storepass labpassword -alias labalias1 -keypass
   labaliaspass -certfile labcert1.pem -keyfile labkey1.pem -keyfilepass
   labkeypass
[oracle@node1 security]$ java utils.ImportPrivateKey -keystore
   labIdentityKeystore.jks -storepass labpassword -alias labalias1 -keypass
   labaliaspass -certfile labcert1.pem -keyfile labkey1.pem -keyfilepass
   labkeypass
Trust this certificate? [no]: yes
Shared Libraries and Class Loaders

•  Shared Libraries used extensively by Oracle Applications
  –  JRF, ADF, APPLCORE, etc
  –  Applications explicitly declare a dependency on shared libraries
•  Understanding Shared Libraries is critical to avoiding Class
   Loader related issues
Application shared libraries
     App-1.ear                App-lib.ear                   App-2.ear

   my-web-1.war               my-web-3.war             my-web-2.war

    my-ejb-1.jar                                            my-ejb-2.jar


Deployment view
Runtime view
                App-1.ear                     App-2.ear

               my-web-1.war                  my-web-2.war

               my-ejb-1.jar                  my-ejb-2.jar

               my-web-3.war                  my-web-3.war
Webapp shared libraries
 webapp-1.war


WEB-INF/web.xml                                        webapp-1.war
WEB-INF/lib/x.jar
    foo.jsp
    bar.jsp                                          WEB-INF/web.xml*
                                                     WEB-INF/lib/x.jar
                                                      WEB-INF/lib/y.jar
                                                          foo.jsp
                                                          bar.jsp
                                                           a.jsp
WEB-INF/web.xml                                           b.html
                    Deployment view



WEB-INF/lib/y.jar
                                      Runtime view


     a.jsp
    b.html


 webapp-lib.war
Jar libraries

    App-1.ear


  my-web-1.war
                       library.jar        my-web-2.war
   my-ejb-1.jar



•  Jar files and Jar libraries can be referenced from
   applications (EAR, WAR, JAR) via MANIFEST classpath or
   descriptors.
Preview – Classloader Analysis Tool

•    Used internally for several releases
•    Will be shipped and supported with PS3
•    Provided as web-app (wls-cat.war)
•    On-demand deployment (dev mode only)
•    URLs allow customization
•    Functionality:
     –  View classloader hierarchies and entire classpath
        for each classloader
     –  Analyze classpath conflicts (filtering classloader
        hints)
     –  Search for a class/resource on a classloader
     –  View class definitions, interfaces
Preview – Classloader Analysis Tool
WebLogic Diagnostic Framework

                                              Pull
Log File Event                                       • WLST API
   Collector                      Accessor           • JMX API
                                                     • WLDF Dashboard
                   Archiver

MBean Property
   Harvester
                                              Push   • SNMP Trap
                   Watcher                           • JMS Message
                                   Notifier
    Code                                             • JMX Notification
 Instrumentor                                        • SMTP Email
                                                     • Diagnostic Image

                 JRockit Flight
                   Recorder        JRockit
                    Buffer         Mission
                                    Control


 Capture         Process          Expose               Retrieve
WLDF/JFR Integration Architecture

   WLST, Console,                 EJB     WebApp      JDBC        JTA         WS         Etc…
WLDF Watch/Notification          WLDF Instrumentation Configuration (Instrumented at Build Time)

                                                     WLDF Instrumentation Engine
WLST Image Manager
                                                 WLDF Monitors and Action Groups

       WLDF Flight Recorder                                               Instrumentation Extension
          Image Source               WLDF Flight Recorder Actions
                                                                             Extension Actions
                     JRFR Consumer API         JRFR Producer API

                          JRockit Flight Recorder

         Diagnostic Image File                                                Extension Data
        With Flight Recorder Data

    Diagnostic Image File
 Without Flight Recorder Data

Extension supplied        JRockit Supplied          WLDF File/Artifact   Available if JRockit is Used
WLDF User-defined Pointcuts
<wldf-instrumentation-monitor>
      <name>Trace_Servlet_Around_Service</name>
      <action>TraceElapsedTimeAction</action>
      <location-type>around</location-type>
      <pointcut>
            execution(* +javax.servlet.Servlet
 service(+javax.servlet.ServletRequest,
                           +javax.servlet.ServletResponse))‫‏‬
         OR execution(* +javax.servlet.http.HttpServlet
                    doPost(+javax.servlet.ServletRequest,
                        +javax.servlet.ServletResponse))‫‏‬
         OR execution(* +javax.servlet.http.HttpServlet
                    doGet(+javax.servlet.ServletRequest,
                        +javax.servlet.ServletResponse))
     </pointcut>
</wldf-instrumentation-monitor>
WLS 10.3.3, JFR R28 and JRMC 4.0.1
                                         “Quick Start Guide”


•  Turn on JFR default recording
  –  -XX:FlightRecorderOptions=defaultrecording=true
  –  Flight recorder command line documentation
•  Configure WLS to use Platform MBean
   Server
  –  Admin console: domain->configuration->general
     tab (Advanced)
  –  Check Platform MBean Server Enabled (default in
     10.3.3)
  –  Check Platform MBean Server Used (off by
     default)
  –  NB: Platform MBean Server security
  –  -
Working with JRockit Flight Recorder

•  Start JRMC, connect to WLS
•  Configure WLS Diagnostic Volume (admin
   console: server->configuration->general, “High”)
•  Right mouse, select “Dump Default Recording”
JRMC + Flight Recorder
WebLogic Server MBeans
via Platform MBean Server + JRMC
Preview – WebLogic Maven Plugin

•  WebLogic Maven Plugin
  –  PS3: supports weblogic.Deployer functionality
     •    weblogic:deploy
     •    weblogic:undeploy
     •    weblogic:redeploy
     •    weblogic:update-app
     •    weblogic:start-app
     •    weblogic:stop-app
     •    weblogic:list-apps
  –  Same parameters as weblogic.Deployer
  –  Other WLS Maven functionality planned for post-PS3
Preview – WebLogic Maven Plugin
•  Build plugin jar file with wljarbuilder.jar
   java -jar wljarbuilder.jar -profile weblogic-maven-plugin
•  Install to local Maven repository
   mvn install:install-file -Dfile=<path>/weblogic-maven-plugin.jar -
   DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -
   Dpackaging=maven-plugin -Dversion=10.3.4 -DgeneratePom=true
•  Add to Maven settings.xml
   <pluginGroups>
     <pluginGroup>com.oracle.weblogic</pluginGroup>
   </pluginGroups>
•  Maven co-ordinates
   <groupid>com.oracle.weblogic</groupid>
   <artifactid>weblogic-maven-plugin</artifactid>
   <version>10.3.4</version>
Maven example pom.xml (excerpt)
<plugin>
<groupId>com.oracle.weblogic</groupId>
   <artifactId>weblogic-maven-plugin</artifactId>
   <version>10.3.4</version>
   <configuration>
      <adminurl>${wls.adminurl}</adminurl>
      <user>${wls.user}</user>
      <password>${wls.password}</password>
      <upload>false</upload>
      <action>deploy</action>
      <remote>false</remote>
      <verbose>true</verbose>
      <source>${project.build.directory}/${project.build.finalName}.
                                      ${project.packaging}</source>
      <name>${project.build.finalName}</name>
   </configuration>
</plugin>
Using Eclipse/OEPE with m2eclipse
•  Third-party m2eclipse plugin provides Maven support for
   OEPE/Eclipse
•  POM editor, dependency graphs, repo browser, mvn tasks
Example: Eclipse/OEPE with the
               m2eclipse plugin
37

Weitere ähnliche Inhalte

Was ist angesagt?

WebLogic Administration course outline
WebLogic Administration course outlineWebLogic Administration course outline
WebLogic Administration course outlineVybhava Technologies
 
Oracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new featuresOracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new featuresMaarten Smeets
 
Oracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsOracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsJames Bayer
 
Enabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA SuiteEnabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA SuiteRevelation Technologies
 
weblogic training | oracle weblogic online training | weblogic server course
weblogic training | oracle weblogic online training | weblogic server courseweblogic training | oracle weblogic online training | weblogic server course
weblogic training | oracle weblogic online training | weblogic server courseNancy Thomas
 
Oracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuningOracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuningMichel Schildmeijer
 
WAS Support & Monitoring Tools
WAS Support & Monitoring ToolsWAS Support & Monitoring Tools
WAS Support & Monitoring ToolsRoyal Cyber Inc.
 
Weblogic configuration & administration
Weblogic   configuration & administrationWeblogic   configuration & administration
Weblogic configuration & administrationMuhammad Mansoor
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationRevelation Technologies
 
BUG - BEA Users\' Group, Jan16 2003
BUG - BEA Users\' Group, Jan16 2003BUG - BEA Users\' Group, Jan16 2003
BUG - BEA Users\' Group, Jan16 2003Sanjeev Kumar
 
JBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the UnionJBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the UnionDimitris Andreadis
 
Classloader leak detection in websphere application server
Classloader leak detection in websphere application serverClassloader leak detection in websphere application server
Classloader leak detection in websphere application serverRohit Kelapure
 
Weblogic server administration
Weblogic server administrationWeblogic server administration
Weblogic server administrationbispsolutions
 
Changes in WebLogic 12.1.3 Every Administrator Must Know
Changes in WebLogic 12.1.3 Every Administrator Must KnowChanges in WebLogic 12.1.3 Every Administrator Must Know
Changes in WebLogic 12.1.3 Every Administrator Must KnowBruno Borges
 
WebLogic for DBAs 1.0h
WebLogic for DBAs 1.0hWebLogic for DBAs 1.0h
WebLogic for DBAs 1.0hSimon Haslam
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureBob Rhubart
 

Was ist angesagt? (20)

WebLogic Administration course outline
WebLogic Administration course outlineWebLogic Administration course outline
WebLogic Administration course outline
 
Oracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new featuresOracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new features
 
Oracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsOracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic Concepts
 
Enabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA SuiteEnabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA Suite
 
weblogic training | oracle weblogic online training | weblogic server course
weblogic training | oracle weblogic online training | weblogic server courseweblogic training | oracle weblogic online training | weblogic server course
weblogic training | oracle weblogic online training | weblogic server course
 
Oracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuningOracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuning
 
Oracle WebLogic 11g Topology
Oracle WebLogic 11g TopologyOracle WebLogic 11g Topology
Oracle WebLogic 11g Topology
 
WAS Support & Monitoring Tools
WAS Support & Monitoring ToolsWAS Support & Monitoring Tools
WAS Support & Monitoring Tools
 
Weblogic configuration & administration
Weblogic   configuration & administrationWeblogic   configuration & administration
Weblogic configuration & administration
 
WebLogic for DBAs
WebLogic for DBAsWebLogic for DBAs
WebLogic for DBAs
 
Weblogic security
Weblogic securityWeblogic security
Weblogic security
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c Administration
 
BUG - BEA Users\' Group, Jan16 2003
BUG - BEA Users\' Group, Jan16 2003BUG - BEA Users\' Group, Jan16 2003
BUG - BEA Users\' Group, Jan16 2003
 
JBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the UnionJBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the Union
 
Classloader leak detection in websphere application server
Classloader leak detection in websphere application serverClassloader leak detection in websphere application server
Classloader leak detection in websphere application server
 
Weblogic server administration
Weblogic server administrationWeblogic server administration
Weblogic server administration
 
Introduction to weblogic
Introduction to weblogicIntroduction to weblogic
Introduction to weblogic
 
Changes in WebLogic 12.1.3 Every Administrator Must Know
Changes in WebLogic 12.1.3 Every Administrator Must KnowChanges in WebLogic 12.1.3 Every Administrator Must Know
Changes in WebLogic 12.1.3 Every Administrator Must Know
 
WebLogic for DBAs 1.0h
WebLogic for DBAs 1.0hWebLogic for DBAs 1.0h
WebLogic for DBAs 1.0h
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the Future
 

Andere mochten auch

03.osb概览
03.osb概览03.osb概览
03.osb概览Meng He
 
The Existential Crisis of Pokemon
The Existential Crisis of PokemonThe Existential Crisis of Pokemon
The Existential Crisis of PokemonPatrick Williamson
 
03.wls depoly jdbc
03.wls depoly jdbc03.wls depoly jdbc
03.wls depoly jdbcMeng He
 
04.golden gate概览
04.golden gate概览04.golden gate概览
04.golden gate概览Meng He
 
Global Warming
Global WarmingGlobal Warming
Global Warminghilaryw01
 
Soa best practices_1013x_drop3
Soa best practices_1013x_drop3Soa best practices_1013x_drop3
Soa best practices_1013x_drop3Meng He
 

Andere mochten auch (7)

03.osb概览
03.osb概览03.osb概览
03.osb概览
 
What is brand?
What is brand?What is brand?
What is brand?
 
The Existential Crisis of Pokemon
The Existential Crisis of PokemonThe Existential Crisis of Pokemon
The Existential Crisis of Pokemon
 
03.wls depoly jdbc
03.wls depoly jdbc03.wls depoly jdbc
03.wls depoly jdbc
 
04.golden gate概览
04.golden gate概览04.golden gate概览
04.golden gate概览
 
Global Warming
Global WarmingGlobal Warming
Global Warming
 
Soa best practices_1013x_drop3
Soa best practices_1013x_drop3Soa best practices_1013x_drop3
Soa best practices_1013x_drop3
 

Ähnlich wie WebLogic Server for ADF/Forms Developers

Weblogic 101 for dba
Weblogic  101 for dbaWeblogic  101 for dba
Weblogic 101 for dbaOsama Mustafa
 
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo RamassoServer Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo RamassoJUG Genova
 
WebLogic 12c - OMF Canberra June 2014
WebLogic 12c - OMF Canberra June 2014WebLogic 12c - OMF Canberra June 2014
WebLogic 12c - OMF Canberra June 2014Joelith
 
WebLogic Consolidation Webcast 27 Jan 2011
WebLogic Consolidation Webcast 27 Jan 2011WebLogic Consolidation Webcast 27 Jan 2011
WebLogic Consolidation Webcast 27 Jan 2011Fumiko Yamashita
 
Oracle VM Consolidation and Path to the Cloud
Oracle VM Consolidation and Path to the CloudOracle VM Consolidation and Path to the Cloud
Oracle VM Consolidation and Path to the CloudBob Rhubart
 
Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352sflynn073
 
What's New and Noteworthy on Oracle CAF 12.1.3
What's New and Noteworthy on Oracle CAF 12.1.3What's New and Noteworthy on Oracle CAF 12.1.3
What's New and Noteworthy on Oracle CAF 12.1.3Bruno Borges
 
WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...
WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...
WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...TEAM Informatics
 
Introduction to java_ee
Introduction to java_eeIntroduction to java_ee
Introduction to java_eeYogesh Bindwal
 
Java EE7 in action
Java EE7 in actionJava EE7 in action
Java EE7 in actionAnkara JUG
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1Д. Ганаа
 
Application-Driven Virtualization: Architectural Considerations
Application-Driven Virtualization: Architectural ConsiderationsApplication-Driven Virtualization: Architectural Considerations
Application-Driven Virtualization: Architectural ConsiderationsBob Rhubart
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music storeADEEBANADEEM
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptKalsoomTahir2
 
Weblogic Domain Activity
Weblogic Domain ActivityWeblogic Domain Activity
Weblogic Domain Activitysubash prakash
 

Ähnlich wie WebLogic Server for ADF/Forms Developers (20)

Weblogic 101 for dba
Weblogic  101 for dbaWeblogic  101 for dba
Weblogic 101 for dba
 
Oracle Web Logic server
Oracle Web Logic serverOracle Web Logic server
Oracle Web Logic server
 
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo RamassoServer Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
 
WebLogic 12c - OMF Canberra June 2014
WebLogic 12c - OMF Canberra June 2014WebLogic 12c - OMF Canberra June 2014
WebLogic 12c - OMF Canberra June 2014
 
Weblogic Oracle server aplication - Neos
Weblogic Oracle server aplication - NeosWeblogic Oracle server aplication - Neos
Weblogic Oracle server aplication - Neos
 
WebLogic Consolidation Webcast 27 Jan 2011
WebLogic Consolidation Webcast 27 Jan 2011WebLogic Consolidation Webcast 27 Jan 2011
WebLogic Consolidation Webcast 27 Jan 2011
 
Oracle VM Consolidation and Path to the Cloud
Oracle VM Consolidation and Path to the CloudOracle VM Consolidation and Path to the Cloud
Oracle VM Consolidation and Path to the Cloud
 
Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352
 
What's New and Noteworthy on Oracle CAF 12.1.3
What's New and Noteworthy on Oracle CAF 12.1.3What's New and Noteworthy on Oracle CAF 12.1.3
What's New and Noteworthy on Oracle CAF 12.1.3
 
WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...
WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...
WebCenter as a Cloud App on Exalogic – A Case Study on Virtualization and Per...
 
Introduction to java_ee
Introduction to java_eeIntroduction to java_ee
Introduction to java_ee
 
Java EE7 in action
Java EE7 in actionJava EE7 in action
Java EE7 in action
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
 
Application-Driven Virtualization: Architectural Considerations
Application-Driven Virtualization: Architectural ConsiderationsApplication-Driven Virtualization: Architectural Considerations
Application-Driven Virtualization: Architectural Considerations
 
WLS
WLSWLS
WLS
 
Weblogic application server
Weblogic application serverWeblogic application server
Weblogic application server
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
 
Weblogic Domain Activity
Weblogic Domain ActivityWeblogic Domain Activity
Weblogic Domain Activity
 
Weblogic
WeblogicWeblogic
Weblogic
 

Mehr von Meng He

06.wls ts
06.wls ts06.wls ts
06.wls tsMeng He
 
05.wls调优
05.wls调优05.wls调优
05.wls调优Meng He
 
04.wls jndi jms
04.wls jndi jms04.wls jndi jms
04.wls jndi jmsMeng He
 
大唐电信—物联网开放架构2010
大唐电信—物联网开放架构2010大唐电信—物联网开放架构2010
大唐电信—物联网开放架构2010Meng He
 
02.wls概览
02.wls概览02.wls概览
02.wls概览Meng He
 
01.ofm11g概览
01.ofm11g概览01.ofm11g概览
01.ofm11g概览Meng He
 
00.exalogic概览
00.exalogic概览00.exalogic概览
00.exalogic概览Meng He
 
02.wls集群
02.wls集群02.wls集群
02.wls集群Meng He
 

Mehr von Meng He (8)

06.wls ts
06.wls ts06.wls ts
06.wls ts
 
05.wls调优
05.wls调优05.wls调优
05.wls调优
 
04.wls jndi jms
04.wls jndi jms04.wls jndi jms
04.wls jndi jms
 
大唐电信—物联网开放架构2010
大唐电信—物联网开放架构2010大唐电信—物联网开放架构2010
大唐电信—物联网开放架构2010
 
02.wls概览
02.wls概览02.wls概览
02.wls概览
 
01.ofm11g概览
01.ofm11g概览01.ofm11g概览
01.ofm11g概览
 
00.exalogic概览
00.exalogic概览00.exalogic概览
00.exalogic概览
 
02.wls集群
02.wls集群02.wls集群
02.wls集群
 

WebLogic Server for ADF/Forms Developers

  • 1. WebLogic Server 11g for ADF/Forms Developers Mark Prichard Java Platform Group, Oracle Fusion Middleware mark.prichard@oracle.com
  • 2. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 3. Oracle WebLogic Suite Strategic Runtime Across Oracle Product Lines Java EE/ISV SOA WebCenter Content Identity Business Apps Suite Suite Management Management Intelligence Suite Suite Suite WebLogic Suite WebLogic Server Enterprise Manager Admin and Operations Development Tools Java EE: Reliability, Availability, Scalability & Performance JDeveloper/Eclipse Coherence High Performance, Reliable, Scale Out for Java, C++ and .NET JRockit Real Time High Performance JVM with Extreme Low Latency Proven to Best for Outperform Oracle Portfolio Lowest Cost of Operations
  • 4. Integrated WebLogic Server •  http://localhost:7101/console/ •  Log on with weblogic/weblogic1 •  C:Documents and Settings<user>Application DataJDeveloper... DefaultDomainbin •  (debug) -agentlib:jdwp=transport=dt_socket,server=y,address=1446
  • 5. Domains and Servers •  What is a domain? –  a logically related group of WebLogic Server instances that you manage from a single set of configuration artifacts. •  What’s in a domain? –  Servers –  Clusters of servers •  What is a WebLogic Server instance? –  A configured instance to host applications and resources •  WebApps, Enterprise Apps, Web Services, … •  JMS, JDBC, Diagnostics, … •  What types of servers are there? –  Administration Server –  Managed Server
  • 6. Creating/Copying a WebLogic Domain •  Configuration wizard: include at least Oracle JRF •  Many ways to copy a domain: domain template builder, pack/unpack, WebLogic Scripting Tool …
  • 7. The Administration Server •  What is it? –  Central configuration controller for the entire domain •  What else does it do? –  Hosts the Administration Console –  Enables you to start and stop servers from a central location –  Enables you to migrate servers and services within the domain –  Enables you to deploy applications within the domain •  Guidelines: –  There must be exactly one* Administration Server in domain –  An Administration Server controls only one domain. –  For production use, we recommend not hosting application logic or resources on the Administration Server
  • 8. Managed Servers •  What is it? – A running instance that hosts applications and resources needed by those applications - The real work horses in a WebLogic domain – Each Managed Server is independent of all other Managed Servers in the domain (unless they are in a cluster, defined later) – You can have as many Managed Servers in a domain as you need – Individual Managed Servers are typically added for capacity and application isolation
  • 9. Managed Server Startup •  The Administration Server stores the master copy of the domain configuration, including the configuration for all managed servers in the domain •  Each Managed Server stores a local copy of its configuration. •  When a Managed Server starts, it connects to the Administration Server to synchronize the configuration •  When configuration is changed, the Administration Server sends changed configuration to Managed Servers •  How do I start a Managed Server? –  With an Admin Server –  In “Independence Mode”
  • 10. Clusters and Machines •  A cluster is a group of Managed Servers running simultaneously and working together to provide increased scalability and reliability •  A cluster appears as a single instance to most clients. •  Clusters enable some advanced features, such as Whole Server Migration, Service Migration, and clustered JMS destinations. •  A machine definition is used to associate a computer with the Managed Servers it hosts. •  Used by Node Manager in restarting a failed Managed Server •  Used by a clustered Managed Server in selecting the best location for storing replicated session data
  • 11. Load Balancing in a Cluster •  For JSPs and Servlets: load balancing is external –  Web server proxy plug-in (round robin) –  HTTP Proxy servlet (i.e., using WLS as a load balancer) –  3rd party hw or sw load balancer •  EJBs and RMI Objects: load balancing is done at connection –  Objects are cluster-aware –  Load balancing algorithm is stored in the clustered object’s stub –  Objects are available on all cluster members; remote objects connect/use according the LB algorithm in the stub –  Load balancing algorithms: Round robin, weighted, random, server affinity
  • 12. Failover in a Cluster •  Servlets and JSPs: – HTTP session state is replicated to a secondary server in the cluster or to a database •  EJBs and RMI Objects: – Replicas available throughout the cluster – Exceptions caught and retried on another instance – For Stateful Session Beans, state is replicated on a secondary server
  • 13. WebLogic Node Manager •  Utility/process running on a physical server that enables you to start, stop, suspend, and restart WebLogic Server instances remotely •  Must run on each physical server that hosts WebLogic Server instances that you want to control with Node Manager •  Not associated with a domain. Can start any server instance that resides on the same physical server. •  Optional, but required to start/stop servers using the Administration Console •  Required for Whole Server Migration and for some configurations of Automatic Service Migration •  Demo: How do I configure Node Manager?
  • 14. WebLogic Scripting Tool (WLST) •  Scripting tool for administering a domain (create, configure, manage, monitor, deploy applications) •  Based on Jython – pure Java implementation of Python •  Great for automating repetitive tasks •  Heavily used by customers and within BEA •  Example: How does JDev shut down the Integrated WebLogic Server instance?
  • 15. WLST: Connection Modes •  Offline: analogous to the Configuration Wizard –  Uses the Offline Configuration Framework •  Also used by the Configuration Wizard •  Consistent results when using either tool –  read and write access to the configuration data that is persisted in the domain’s config directory or in a domain template JAR –  Intended to create a domain or modify a non-running domain –  Used during WLS install to create samples domains •  Online: analogous to the Administration Console –  JMX client –  Interacts with a server’s MBeans –  Intended as a runtime management tool:
  • 16. WSLT with OEPE 11.1.1.6
  • 17. WLST – with SSL + Custom Trust java -Dweblogic.security.TrustKeyStore=CustomTrust - Dweblogic.security.CustomTrustKeyStoreFileName=/home/ oracle/security/labTrustKeystore.jks - Dweblogic.security.CustomTrustKeystoreType=JKS - Dweblogic.security.CustomTrustKeyStorePassPhrase=labpassw ord weblogic.WLST wls:/offline> nmConnect ('oracle','oracle1','node1.localdomain', 5556,'labDomain','/home/oracle/wls1032/user_projects/ domains/labDomain','ssl') wls:/nm/labDomain> storeUserConfig ('nm_user.config','nm_user.key',nm='true') wls:/offline> nmConnect(userConfigFile=‘<path>/ nm_user.config',userKeyFile=‘<path>/ nm_user.key',host='node1.localdomain',port=5556,domainNam e='labDomain',domainDir=‘<path>/labDomain',mType='ssl')
  • 18. Java Keystores for Dev/Test [oracle@node1 security]$ java utils.CertGen -certfile labcert1 -keyfile labkey1 -keyfilepass labkeypass -cn "node1.localdomain" -o "MyOrganization" -ou "FOR TESTING ONLY" -keyusage digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgre ement [oracle@node1 security]$ cp /home/oracle/wls1032/wlserver_10.3/server/lib/ CertGenCA.der . [oracle@node1 security]$ java utils.der2pem CertGenCA.der [oracle@node1 security]$ cat labcert1.pem CertGenCA.pem > cert1.pem [oracle@node1 security]$ mv cert1.pem labcert1.pem [oracle@node1 security]$ keytool -printcert -file labcert1.pem [oracle@node1 security]$ java utils.ImportPrivateKey -keystore labIdentityKeystore.jks -storepass labpassword -alias labalias1 -keypass labaliaspass -certfile labcert1.pem -keyfile labkey1.pem -keyfilepass labkeypass [oracle@node1 security]$ java utils.ImportPrivateKey -keystore labIdentityKeystore.jks -storepass labpassword -alias labalias1 -keypass labaliaspass -certfile labcert1.pem -keyfile labkey1.pem -keyfilepass labkeypass Trust this certificate? [no]: yes
  • 19. Shared Libraries and Class Loaders •  Shared Libraries used extensively by Oracle Applications –  JRF, ADF, APPLCORE, etc –  Applications explicitly declare a dependency on shared libraries •  Understanding Shared Libraries is critical to avoiding Class Loader related issues
  • 20. Application shared libraries App-1.ear App-lib.ear App-2.ear my-web-1.war my-web-3.war my-web-2.war my-ejb-1.jar my-ejb-2.jar Deployment view Runtime view App-1.ear App-2.ear my-web-1.war my-web-2.war my-ejb-1.jar my-ejb-2.jar my-web-3.war my-web-3.war
  • 21. Webapp shared libraries webapp-1.war WEB-INF/web.xml webapp-1.war WEB-INF/lib/x.jar foo.jsp bar.jsp WEB-INF/web.xml* WEB-INF/lib/x.jar WEB-INF/lib/y.jar foo.jsp bar.jsp a.jsp WEB-INF/web.xml b.html Deployment view WEB-INF/lib/y.jar Runtime view a.jsp b.html webapp-lib.war
  • 22. Jar libraries App-1.ear my-web-1.war library.jar my-web-2.war my-ejb-1.jar •  Jar files and Jar libraries can be referenced from applications (EAR, WAR, JAR) via MANIFEST classpath or descriptors.
  • 23. Preview – Classloader Analysis Tool •  Used internally for several releases •  Will be shipped and supported with PS3 •  Provided as web-app (wls-cat.war) •  On-demand deployment (dev mode only) •  URLs allow customization •  Functionality: –  View classloader hierarchies and entire classpath for each classloader –  Analyze classpath conflicts (filtering classloader hints) –  Search for a class/resource on a classloader –  View class definitions, interfaces
  • 24. Preview – Classloader Analysis Tool
  • 25. WebLogic Diagnostic Framework Pull Log File Event • WLST API Collector Accessor • JMX API • WLDF Dashboard Archiver MBean Property Harvester Push • SNMP Trap Watcher • JMS Message Notifier Code • JMX Notification Instrumentor • SMTP Email • Diagnostic Image JRockit Flight Recorder JRockit Buffer Mission Control Capture Process Expose Retrieve
  • 26. WLDF/JFR Integration Architecture WLST, Console, EJB WebApp JDBC JTA WS Etc… WLDF Watch/Notification WLDF Instrumentation Configuration (Instrumented at Build Time) WLDF Instrumentation Engine WLST Image Manager WLDF Monitors and Action Groups WLDF Flight Recorder Instrumentation Extension Image Source WLDF Flight Recorder Actions Extension Actions JRFR Consumer API JRFR Producer API JRockit Flight Recorder Diagnostic Image File Extension Data With Flight Recorder Data Diagnostic Image File Without Flight Recorder Data Extension supplied JRockit Supplied WLDF File/Artifact Available if JRockit is Used
  • 27. WLDF User-defined Pointcuts <wldf-instrumentation-monitor> <name>Trace_Servlet_Around_Service</name> <action>TraceElapsedTimeAction</action> <location-type>around</location-type> <pointcut> execution(* +javax.servlet.Servlet service(+javax.servlet.ServletRequest, +javax.servlet.ServletResponse))‫‏‬ OR execution(* +javax.servlet.http.HttpServlet doPost(+javax.servlet.ServletRequest, +javax.servlet.ServletResponse))‫‏‬ OR execution(* +javax.servlet.http.HttpServlet doGet(+javax.servlet.ServletRequest, +javax.servlet.ServletResponse)) </pointcut> </wldf-instrumentation-monitor>
  • 28. WLS 10.3.3, JFR R28 and JRMC 4.0.1 “Quick Start Guide” •  Turn on JFR default recording –  -XX:FlightRecorderOptions=defaultrecording=true –  Flight recorder command line documentation •  Configure WLS to use Platform MBean Server –  Admin console: domain->configuration->general tab (Advanced) –  Check Platform MBean Server Enabled (default in 10.3.3) –  Check Platform MBean Server Used (off by default) –  NB: Platform MBean Server security –  -
  • 29. Working with JRockit Flight Recorder •  Start JRMC, connect to WLS •  Configure WLS Diagnostic Volume (admin console: server->configuration->general, “High”) •  Right mouse, select “Dump Default Recording”
  • 30. JRMC + Flight Recorder
  • 31. WebLogic Server MBeans via Platform MBean Server + JRMC
  • 32. Preview – WebLogic Maven Plugin •  WebLogic Maven Plugin –  PS3: supports weblogic.Deployer functionality •  weblogic:deploy •  weblogic:undeploy •  weblogic:redeploy •  weblogic:update-app •  weblogic:start-app •  weblogic:stop-app •  weblogic:list-apps –  Same parameters as weblogic.Deployer –  Other WLS Maven functionality planned for post-PS3
  • 33. Preview – WebLogic Maven Plugin •  Build plugin jar file with wljarbuilder.jar java -jar wljarbuilder.jar -profile weblogic-maven-plugin •  Install to local Maven repository mvn install:install-file -Dfile=<path>/weblogic-maven-plugin.jar - DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin - Dpackaging=maven-plugin -Dversion=10.3.4 -DgeneratePom=true •  Add to Maven settings.xml <pluginGroups> <pluginGroup>com.oracle.weblogic</pluginGroup> </pluginGroups> •  Maven co-ordinates <groupid>com.oracle.weblogic</groupid> <artifactid>weblogic-maven-plugin</artifactid> <version>10.3.4</version>
  • 34. Maven example pom.xml (excerpt) <plugin> <groupId>com.oracle.weblogic</groupId> <artifactId>weblogic-maven-plugin</artifactId> <version>10.3.4</version> <configuration> <adminurl>${wls.adminurl}</adminurl> <user>${wls.user}</user> <password>${wls.password}</password> <upload>false</upload> <action>deploy</action> <remote>false</remote> <verbose>true</verbose> <source>${project.build.directory}/${project.build.finalName}. ${project.packaging}</source> <name>${project.build.finalName}</name> </configuration> </plugin>
  • 35. Using Eclipse/OEPE with m2eclipse •  Third-party m2eclipse plugin provides Maven support for OEPE/Eclipse •  POM editor, dependency graphs, repo browser, mvn tasks
  • 36. Example: Eclipse/OEPE with the m2eclipse plugin
  • 37. 37