Getting Started with Oracle WebLogic Server 12c: Developer’s Guide

Getting Started with Oracle WebLogic Server 12c: Developer’s Guide
eBook: $32.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $87.98    Print cover: $54.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Create a complete Java EE 6 application leveraging WebLogic features like JMS, SOAP and RESTful Web Services
  • Learn how to use Oracle WebLogic Server's key components and features
  • Step-by-step instructions with screenshots and code samples to help understand and apply concepts

Book Details

Language : English
Paperback : 374 pages [ 235mm x 191mm ]
Release Date : September 2013
ISBN : 1849686963
ISBN 13 : 9781849686969
Author(s) : Fabio Mazanatti Nunes, William Markito Oliveira
Topics and Technologies : All Books, Enterprise Products and Platforms, Enterprise, Oracle

Table of Contents

Chapter 1: Overview of WebLogic Server 12c and Related Technologies
Chapter 2: Setting Up the Environment
Chapter 3: Java EE Basics – Persistence, Query, and Presentation
Chapter 4: Creating RESTful Services with JAX-RS
Chapter 5: Singleton Bean, Validations, and SOAP Web Services
Chapter 6: Using Events, Interceptors, and Logging Services
Chapter 7: Remote Access with JMS
Chapter 8: Adding Security
Chapter 9: Servlets, Composite Components, and WebSockets
Chapter 10: Scaling Up the Application
Chapter 11: Some WebLogic Internals
  • Chapter 1: Overview of WebLogic Server 12c and Related Technologies
    • Introducing Oracle WebLogic Server 12c
      • WebLogic Server @ Oracle
      • Most relevant features
    • Overview of JDK 7
      • The Project Coin
        • The diamond operator
        • The try-with-resources statement
        • Strings in switch statements
        • Manipulating binary integral literals
        • Exception handling with multicatch statements
    • Delving into Java EE 6
    • Other technologies in the book
      • Oracle Enterprise Pack for Eclipse
      • Oracle Coherence
      • PrimeFaces
      • MySQL
    • The Cloud Application Foundation (CAF)
      • Oracle Traffic Director
      • Oracle Tuxedo
      • Oracle Virtual Assembly Builder
      • Oracle Exalogic and WebLogic 12c
    • Web resources
      • Java and Java EE 6
      • WebLogic 12c
      • Coherence
      • Other tools
    • Summary
    • Chapter 2: Setting Up the Environment
      • About the directory structure
      • Installing JDK 1.7
      • Installing Oracle WebLogic Server
      • Installing Oracle Enterprise Pack for Eclipse (OEPE)
      • Installing MySQL
        • Installing on Linux using a package manager
        • Downloading and installing manually
        • Disabling case sensitivity for tables on Unix/Linux
        • Some Windows specifics
        • Configuring MySQL databases
      • Preparing PrimeFaces
        • Downloading the binaries
        • Creating a shared library
      • Setting up a WebLogic domain
      • Configuring Eclipse and OEPE
        • Linking WebLogic's runtime environment
        • Adding a reference to the PrimeFaces' shared library
        • Linking WebLogic Server's instance
      • Referencing MySQL databases
        • Creating WebLogic data sources
        • Adding database connections to Eclipse
      • Using OpenLDAP
        • Installing OpenLDAP
        • Configuring an OpenLDAP server
        • Loading sample entries and testing
      • Web resources
      • Summary
      • Chapter 3: Java EE Basics – Persistence, Query, and Presentation
        • The business scenario – movie ticket system
          • Business entities of the system
        • Organizing projects in Eclipse
        • Creating the StoreBO project
          • Generating classes from database tables
          • Creating named queries
          • Tweaking the persistence.xml file
          • Packing the project
        • The Store web project
          • Adding references to PrimeFaces' shared library
          • Adding references to StoreBO
          • Referencing the persistence configuration file
          • Creating a named bean
          • Configuring the Web descriptor
          • Defining the test page
          • Deploying and testing the application
        • Web resources
        • Summary
        • Chapter 4: Creating RESTful Services with JAX-RS
          • Creating Theater entities
            • Customizing the generated entities
              • Creating named queries
              • Preventing cyclic references
              • Formatting exhibitions' date and time
            • Completing the persistence.xml file
            • Packaging the library
          • Creating the Theater web application
            • Setting up the project
            • Enabling JAX-RS
          • Exposing RESTful Services through JAX-RS
            • Coding the API
            • Testing the web service
          • Creating the REST client
            • Configuring JAX-RS client libraries and optional package
            • Creating the web service consumer
            • Updating the SearchManager bean
            • Updating the query page
          • Structuring the web application
            • Applying templates through Facelets
            • Creating an entity listing page
          • Web resources
          • Summary
          • Chapter 5: Singleton Bean, Validations, and SOAP Web Services
            • Using bean validation
              • About built-in constraints
              • Combining and grouping validation rules
              • Creating a custom constraint
                • Coding a constraint validator
              • Showing validation messages
                • Using the message component
                • PrimeFaces's Growl
              • Dealing with null and empty strings on JSF components
            • Singleton session beans
              • Implementing a singleton session bean
              • Understanding how to use the startup annotation
                • Establishing a startup and shutdown sequence
              • Dealing with concurrency when using singletons
              • Singleton applied to web services
            • Persisting an object using JPA
              • Understanding the available transaction contexts
              • Using container-managed transactions
              • Using bean-managed transactions
              • Acquiring a transaction context manually
            • A brief intermission
            • Web services and SOAP
              • The reservation web service
              • Testing the service provider
              • Consuming the service
            • Web resources
            • Summary
            • Chapter 6: Using Events, Interceptors, and Logging Services
              • Understanding interceptors
                • Creating a log interceptor
                • Interceptors and Aspect Oriented Programming
              • Using asynchronous methods
              • Understanding WebLogic's logging service
                • Anatomy of a log message
                • Redirecting standard output to a log file
                • Integrating Log4J to WebLogic's logging services
                • Accessing and reading log files
              • Events
                • Defining audit events
              • Web resources
              • Summary
              • Chapter 7: Remote Access with JMS
                • WebLogic clients
                  • Thin T3 client – wlthint3client.jar
                  • RMI thin client – wlclient.jar
                  • JMS thin client – wljmsclient.jar
                  • JMS SAF client – wlsafclient.jar
                  • JMS T3 SAF client – wlsaft3client.jar
                  • Full client – wlfullclient.jar
                  • JMX client – wljmxclient.jar
                • Java Messaging Service (JMS) and WebLogic
                  • The persistent store
                  • The JMS server
                  • The JMS module
                  • The JMS subdeployment
                  • The JMS queue
                  • The JMS connection factory
                • Posting messages from a standalone client
                  • Creating the project
                  • Coding the message producer
                  • Queuing messages
                • Consuming messages with an MDB
                • Configuring thread limits for MDBs
                • The Store-and-Forward client feature
                  • Creating the configuration file
                  • Encrypting the connection password
                  • Adjusting the configuration file
                  • Adjusting the code
                  • Testing the SAF client
                  • Web resources
                • Summary
                • Chapter 8: Adding Security
                  • Exploring Java SE and Java EE security
                  • WebLogic security
                    • Authentication providers and security realms
                  • Using an external LDAP server
                    • Configuring an OpenLDAP authentication provider
                  • Securing the web application
                    • Modifying the web.xml descriptor file
                    • Modifying the weblogic.xml descriptor file
                    • Creating and mapping a global role
                      • Creating the login form
                      • Testing the login procedure
                  • Protecting WebLogic resources
                  • Signing up a user and OpenLDAP
                    • Creating a user on the database
                    • Publishing a customer to a JMS queue
                      • Security policies for the JMS queue
                      • Updating the login bean
                    • From the JMS queue to the LDAP server
                      • Creating the LDAP client
                      • Creating the MDB
                      • Testing LDAP user provisioning
                      • Completing the application
                  • Web resources
                  • Summary
                  • Chapter 9: Servlets, Composite Components, and WebSockets
                    • Overview of JavaServer Faces
                      • Using composite components
                    • Learning a few Servlet tricks
                      • Deprecated features
                      • Identifying the default name of a servlet
                      • Asynchronous request processing
                      • Creating dynamic components
                    • Using WebSockets
                      • Creating the server component
                      • Testing the component
                      • Using an encrypted connection
                    • Web resources
                    • Summary
                    • Chapter 10: Scaling Up the Application
                      • Introducing the Node Manager
                      • Defining machines
                      • Using Cluster and Managed Servers
                        • Creating a static cluster
                        • Creating a dynamic cluster
                      • Configuring a software load balancer
                        • Creating a new Managed Server for load balancing
                        • Enabling the load balancer
                        • Retargeting applications and resources
                          • Updating web.xml of clustered web applications
                          • Retargeting auxiliary components
                          • Making the application cluster friendly
                          • Changing deployment target from Eclipse
                      • Using a singleton service
                        • Creating a singleton service
                        • Adjusting the service client
                      • Using Oracle Coherence
                        • Replicating sessions with Coherence*Web
                          • Creating a Coherence cluster
                          • Enabling Coherence*Web storage
                          • Adjusting the application to use the cache
                        • Caching JPA objects with TopLink Grid
                      • Web resources
                      • Summary
                      • Chapter 11: Some WebLogic Internals
                        • Understanding deployment structures
                          • Packaging as an archived file
                          • Using an exploded archive directory
                          • Using a virtual application
                          • Configuring the deployment model
                        • Using FastSwap to reduce deployment time
                        • Packaging modules into an application
                          • Creating an application-scoped module
                          • Restricting access to an application-scoped resource
                          • Declaring data sources using annotations
                        • Using the Classloader Analysis Tool (CAT)
                          • Starting CAT
                          • Finding potential conflicts
                        • Using RESTful management services
                          • Enabling the management service
                          • Monitoring resources
                          • Formatting the response
                        • Web resources
                        • Summary

                        Fabio Mazanatti Nunes

                        Fabio Mazanatti Nunes: With more than two decades of experience in system design and development, Fabio worked in a wide range of projects and architectures (mainframe, client-server, distributed architecture, and SOA) for large corporations in Brazil, and for the last dozen years, he specialized in the architecture and implementation of Java EE and SOA solutions, mainly using BEA and Oracle products. You can find more material related to t hese topics on his blog,

                        William Markito Oliveira

                        William Markito Oliveira has more than 15 years of experience in software development, including solution architecture and consulting. For the last few years, he had focused on Service Oriented Architecture (SOA) solutions, Enterprise Application Integration (EAI), and system optimization. Currently, he is looking into cloud systems with specific focus on in-memory data grid and Java EE. He is also a member of the Java EE Tutorial documentation team, helping with write-ups and code examples about new Java EE technologies and can be reached at Twitter (@william_markito) or through his blog, He has authored another book, The Java EE 6 Tutorial: Advanced Topics, Fourth Edition, Addison-Wesley Professional, 978-0-13708-186-8.
                        Sorry, we don't have any reviews for this title yet.

                        Code Downloads

                        Download the code and support files for this book.

                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                        - 1 submitted: last submission 20 Nov 2013

                        Errata type: Graphics | Page number: 199

                        In the figure where it reads "subdevelopment" it should be "subdeployment"

                        The correct diagram is as follows:


                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        Getting Started with Oracle WebLogic Server 12c: Developer’s Guide +    HP Network Node Manager 9: Getting Started =
                        50% Off
                        the second eBook
                        Price for both: $52.20

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • Create and package applications and shared libraries that use Java EE resources such aspersistence layer, interceptors, and managed beans
                        • Expose and consume Web Services using both SOAP (JAX-WS) and REST (JAX-RS) technologies
                        • Utilize WebLogic Server’s security providers to add authentication and authorization to an application
                        • Publish and consume messages using JMS features, understanding and programming both server and standalone client pieces
                        • Scale up your application using features such as session replication, caching and optimized data access
                        • Unlock WebLogic’ full potential with expert performance tuning tips
                        • Understand the concepts and usage of validators, events, and listeners

                        In Detail

                        Oracle WebLogic server has long been the most important, and most innovative, application server on the market. The updates in the 12c release have seen changes to the Java EE runtime and JDK version, providing developers and administrators more powerful and feature-packed functionalities.

                        Getting Started with Oracle WebLogic Server 12c: Developer’s Guide provides a practical, hands-on, introduction to the application server, helping beginners and intermediate users alike get up to speed with Java EE development, using the Oracle application server.

                        Starting with an overview of the new features of JDK 7 and Java EE 6, Getting Started with Oracle WebLogic Server 12c quickly moves on to showing you how to set up a WebLogic development environment, by creating a domain and setting it up to deploy the application.

                        Once set up, we then explain how to use the key components of WebLogic Server, showing you how to apply them using a sample application that is continually developed throughout the chapters. On the way, we’ll also be exploring Java EE 6 features such as context injection, persistence layer and transactions.

                        After the application has been built, you will then learn how to tune its performance with some expert WebLogic Server tips.


                        Getting Started with Oracle WebLogic Server 12c is a fast-paced and feature-packed book, designed to get you working with Java EE 6, JDK 7 and Oracle WebLogic Server 12c straight away, so start developing your own applications.

                        Who this book is for

                        Getting Started with Oracle WebLogic Server 12c: Developer's Guide is written for developers who are just getting started, or who have some experience, with Java EE who want to learn how to develop for and use Oracle WebLogic Server. Getting Started with Oracle WebLogic Server 12c: Developer's Guide also provides a great overview of the updated features of the 12c release, and how it integrates Java EE 6 and JDK 7 to remove boilerplate code.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software