www.it-ebooks.info Oracle WebLogic Server 12 c Advanced Administration Cookbook Over 60 advanced recipes to congure, troubleshoot, and tune Oracle WebLogic Server Dalton Iwazaki BIRMINGHAM - MUMBAI www.it-ebooks.info Oracle WebLogic Server 12 c Advanced Administration Cookbook Copyright © 2013 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: June 2013 Production Reference: 1110613 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-84968-684-6 www.packtpub.com Cover Image by Abhishek Pandey (abhishek.pandey1210@gmail.com) www.it-ebooks.info Credits Author Dalton Iwazaki Reviewers Vivek Acharya Daniel Amadei Wickes Potgieter Acquisition Editor Martin Bell Lead Technical Editor Azharuddin Sheikh Technical Editors Vrinda Nitesh Bhosale Saijul Shah Copy Editors Brandt D'Mello Insiya Morbiwala Laxmi Subramanian Project Coordinator Anurag Banerjee Proofreaders Cecere Mario Lindsey Thomas Indexer Monica Ajmera Mehta Production Coordinator Melwyn D'sa Cover Work Melwyn D'sa www.it-ebooks.info About the Author Dalton Iwazaki lives in Sao Paulo, Brazil and started working with technology in 1994 in a school lab, at the age of 17. As a system administrator, Dalton congured and maintained the network (Novel 3.12), the computers (Window 3.11, Windows NT 4.0, Windows 95), and the Internet. He also took his rst steps in programming by building the school website in ASP and a computer voting system to simulate the election process in Delphi. In 1999, Dalton moved to a new company and started working with Java development. During this period, he worked on many Java server-side applications and dug deep to understand the use of JDBC, JMS, JMX, XML, and multithreaded applications. He built some frameworks from scratch to help the development, and started working on the Application Server world with IBM Websphere, Resin, Tomcat, JBoss, and BEA WebLogic. Until 2004, Dalton moved around to other companies working either as a Java developer or Java Architect. In 2004 and 2005, Dalton worked as a Software Development Manager; he lead 10 developers to build the entire website, provisioning and back ofce operations of a new ISP Provider with a variety of integrations and languages, such as Java, VB, C#, Perl, and PHP. Dalton then moved to a large international bank to work as a project manager in 2005 and 2006. His role was to manage the Internet Banking and Credit Card portals and integrate the business clients and the development team. From 2006 to 2008, Dalton started and worked on his own company, a design agency focused on the delivery of web solutions. In 2008, Dalton started working in partnership with Oracle Consulting on the infrastructure level of the WebLogic Server. In the following year, Dalton started a new company named VN Tecnologia, an IT professional services provider and Oracle Partner Network member. Working together with Oracle's clients and projects, Dalton's solid expertise in infrastructure and Java development are a rare combination used in his specializations - WebLogic Server conguration, administration, troubleshooting, and tuning. You can reach Dalton Iwazaki at dalton.iwazaki@gmail.com. I want to thank my family for their support and patience. To my lovely wife Cibele, my son Ian, and my daughter Lia. www.it-ebooks.info About the Reviewers Vivek Acharya is an Oracle Consultant working as a professional freelancer. He has been a part of the design, development, consulting, and architect world for approximately 7 years, working in Oracle Practice at GE, IBM, HP. He is an Oracle Certied Expert as Oracle Fusion—SOA 11g Implementation Specialist and Oracle BPM 11g Implementation Specialist. He has experience and expertise in Oracle Fusion—SOA, BPM, BAM, Mediator, B2B, BI, AIA, WebLogic, workow, Rules, WebCenter, ECM, IDM, Oracle fusion applications, SaaS, On Demand, and so on. He loves all things to do with Oracle Fusion Applications, Oracle SOA, Oracle BPM, cloud computing, salesforce, SaaS, and BSM. He has authored a couple of books on distributed systems, Oracle BPM, and many others. He likes to play Synthesizer and loves travelling. You can add him to your LinkedIn list by going to the link http://www.linkedin.com/pub/vivek-acharya/15/377/26a, write to him on vivek.oraclesoa@gmail.com, and read about him and his works at http://acharyavivek.wordpress.com/. www.it-ebooks.info Daniel Amadei is a Senior Principal Consultant working for Oracle Consulting Services in Brazil and has more than 10 years of experience in IT market being a specialized consultant and solutions architect for SOA and Enterprise Applications. He has strong analytical and problem-solving abilities with solid experience in development and architecture of applications. He is a specialist in SOA and EAI Oracle middleware products, web services and related technologies and the Java Platform, especially Java EE. He has been working with Java since 1999 and SOA/EAI since 2007 and has, at the time of this book' s writing, 8 certications related to his specialties, including Oracle Certied SOA Architect, Oracle SOA Foundation Practitioner and Sun Certied Enterprise Architect for J2EE. You can write to him on daniel.amadei@gmail.com, and read about his works at http://www.amadei.com.br. I'd like to thank the author, Dalton, for writing this great book and for giving me the chance to learn a lot by reviewing it. I'm mainly a developer, and getting my hands in this infrastructure book gave me lots of valuable information. Wickes Potgieter has worked as a product specialist for over 12 years. His main focus was on the BEA WebLogic suite of products, and after the Oracle acquisition of BEA Systems, focused on the Oracle Fusion Middleware suite of products. His experience ranges from Solution Architecture, Infrastructure Design, administration, development, presales, and training to performance tuning of the Oracle Fusion Middleware products, JVM, and custom applications. He specializes in Oracle WebLogic Server, JRockit, Service Bus, SOA, AIA, BPM, BAM, Enterprise Manager 11g/12c, WebCenter, Identity and Access Management, and Application Performance Management. He formed a specialized consulting company in 2003 with ofces in the United Kingdom and South Africa, covering customers in the EMEA region. His company is an Oracle Gold partner and has a team of specialized Oracle Fusion Middleware consultants servicing customers both onsite and offsite. You can visit the TSI-Systems website at www.tsisystems.co.uk, and Wickes can be contacted on wickes@tsisystems.co.uk. I would like to thank my wife Mary Jane for her patience and for assisting me through all the late nights. Thank you to all my friends and family for their constant encouragement. www.it-ebooks.info www.PacktPub.com Support les, eBooks, discount offers and more You might want to visit www.PacktPub.com for support les and downloads related to your book. Did you know that Packt offers eBook versions of every book published, with PDF and ePub les available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@ packtpub.com for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read, and search across Packt's entire library of books. Why Subscribe? f Fully searchable across every book published by Packt f Copy and paste, print and bookmark content f On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access. Instant Updates on New Packt Books Get notied! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page. www.it-ebooks.info www.it-ebooks.info Table of Contents Preface 1 Chapter 1: Install, Congure, and Run 5 Introduction 5 Installing WebLogic Server 12 c 6 Creating the WebLogic domain 8 Distributing the domain les to remote machines 12 Starting the Node Manager 13 Starting the Administration Server 15 Saving and activating changes in the Administration Console 18 Protecting changes in the Administration Console 21 Extending and customizing the Administration Console 24 Enabling RESTful Management Services 28 Starting/Stopping the WebLogic Managed Server 31 Deploying applications 35 Chapter 2: High Availability with WebLogic Clusters 39 Introduction 39 Creating a WebLogic cluster 40 Dening a Hostname/Alias for the Listen Address value 45 Conguring HA WebLogic cluster parameters 48 Using Unicast for cluster communications 52 Using Multicast for cluster communications 54 Installing Apache HTTP Server for the Web tier 56 Using the Web Server Plug-in to Load Balance HTTP Requests to WebLogic cluster 60 Dening a network channel for cluster communications 67 Conguring high availability for Administration Server 73 www.it-ebooks.info [...]... WebLogic Server The domain should have at least one WebLogic Server instance with the role of the Administration Server The Administration Server is the access point used for configuration, deployment, and monitoring More WebLogic Server instances can be created to be part of the domain All other WebLogic Server instances of the domain that are not the Administration Server are called the Managed Servers... See also ff Starting the Administration Server ff Starting/Stopping the WebLogic Managed Server Starting the Administration Server Administration Server is a WebLogic Server instance specific to administering a WebLogic domain through the Administration Console application at the /console URI It's a common task to deploy runtime applications to the Administration Server in development environments,... authentication 254 Enabling the Administration Port 258 Index 261 iii www.it-ebooks.info Table of Contents iv www.it-ebooks.info Preface Oracle WebLogic Server 12c Advanced Administration Cookbook guides you through over 60 recipes covering right from the basics of the WebLogic Server 12c installation to JDBC, JMS, cluster configuration, and tuning This book covers the day-to-day tasks of a WebLogic administrator,... Management Services ff Starting/Stopping the WebLogic Managed Server ff Deploying applications Introduction WebLogic Server is Oracle' s flagship J2EE application server and is the foundation of the Oracle Fusion Middleware range of products, such as Oracle SOA Suite, Oracle WebCenter, and Oracle Service Bus The new 12c version is being fully integrated with Oracle' s Middleware products, and the system... to use WebLogic clusters with a minimum architecture of at least two WebLogic Server instances (the Managed Servers) in two different machines The objective is to avoid having a single point of failure We will create a new WebLogic domain called PROD_DOMAIN with an administration instance (AdminServer) named PROD_AdminServer and a WebLogic cluster PROD_Cluster with the two Managed Servers PROD _Server0 1... Chapter 4, Configuring JMS Resources for Clustering and High Availability, teaches how to set up JMS resources with WebLogic Clustering Chapter 5, Monitoring WebLogic Server 12c, explains how to monitor WebLogic Server 12c with the included tools Chapter 6, Troubleshooting WebLogic Server 12c, teaches how to find solutions to the most common problems Chapter 7, Stability and Performance, teaches how to... ff Oracle WebLogic Server 12c: http://www .oracle. com/technetwork/ middleware /weblogic/ downloads/index.html ff Oracle JRockit 6 R28: http://www .oracle. com/technetwork/middleware/ jrockit/downloads/index.html ff Apache HTTP Server 2.2: http://httpd.apache.org Who this book is for The book is targeted at the datacenter operator, system administrator, or Java developer who already knows the basics of WebLogic. .. value you previously specified during domain creation 5 WebLogic Administration Server will start How it works The Administration Server is now running and waiting for connections in the host and port that are specified during domain creation at http://prod01.domain.local:7001/console . www.it-ebooks.info Oracle WebLogic Server 12 c Advanced Administration Cookbook Over 60 advanced recipes to congure, troubleshoot, and tune Oracle WebLogic Server Dalton Iwazaki BIRMINGHAM. resources with WebLogic Clustering. Chapter 5, Monitoring WebLogic Server 12c, explains how to monitor WebLogic Server 12c with the included tools. Chapter 6, Troubleshooting WebLogic Server 12c, teaches. authentication 254 Enabling the Administration Port 258 Index 261 www.it-ebooks.info iv Table of Contents www.it-ebooks.info Preface Oracle WebLogic Server 12c Advanced Administration Cookbook guides you