www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page i BEA WebLogic Server 8 ™ FOR DUMmIES ‰ www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page ii www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page iii BEA WebLogic Server 8 ™ FOR DUMmIES ‰ by Jeff Heaton www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page iv BEA WebLogic Server™8 For Dummies® Published by Wiley Publishing, Inc. 909 Third Avenue New York, NY 10022 www.wiley.com Copyright © 2003 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form orby any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee tothe Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8700. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, e-mail: [email protected]. Trademarks:Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com and related trade dress are trademarks or registered trademarks of Wiley Publishing, Inc., in the United States and other countries, and may not be used without written permission. BEA WebLogicServer is a trademark of BEA Systems, Inc. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHOR HAVE USED THEIR BEST EFFORTS IN PREPARING THIS BOOK, THEY MAKE NO REPRESENTATIONS OR WAR- RANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTA- TIVES OR WRITTEN SALES MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT WITH A PROFESSIONAL WHERE APPRO- PRIATE. NEITHER THE PUBLISHER NOR AUTHOR SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CON- SEQUENTIAL, OR OTHER DAMAGES. For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2003101896 ISBN: 0-7645-2472-0 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 is a trademark of Wiley Publishing, Inc. www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page v About the Author Jeff Heatonis the author of four books and more than two dozen articles, a college instructor, and a consultant. He teaches introductory and advanced Java at St. Louis Community College at Meramec. His specialty is in Internet, socket-level/spidering, and artificial intelligence programming. Many exam- ples and tutorials can be found at his web site at http://www.jeffheaton.com. Jeff is a Sun Certified Java Programmer, a member of the IEEE, and holds a master’s degree in Information Management from Washington University in St. Louis. www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page vi www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page vii Dedication This book is dedicated to my mother, Mary Heaton, for always supporting me in everything I do. I love you very much and am very grateful for all you have done for me over the years. Author’s Acknowledgments There are many people who were helpful in the creation of this book. I owe a great deal to Susan Pink for all her hard work editing this book and making sure that my ideas stayed on track and were easy to follow. I would also like to thank Allen Wyatt for helping construct the flow of many of the chapters in this book and adding additional material. Will Iverson did a great job as technical editor, making sure everything was just right and suggesting additional material as needed. Everyone at Wiley was easy to work with, and I appreciate your support. Iwould like to thank Melody Layne for working out the initial details of this book and making it a reality. Melody was also helpful in getting information about version 8.1 of WebLogic. Finally, I would like to thank everyone at the Studio B agency for helping with this and other book projects of mine. In particular, thanks to Laura Lewin for all your help and being my agent on this book. www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page viii Publisher’s Acknowledgments We’re proud of this book; please send us your comments through our online registration form located at www.dummies.com/register/. Some of the people who helped bring this book to market include the following: Acquisitions, Editorial, and Media Production Development Project Coordinator: Nancee Reeves Project Editor: Susan Pink Layout and Graphics: Seth Conley, Acquisitions Editor: Melody Layne Kelly Emkow, Carrie Foster, Lauren Goddard, Tiffany Muth Technical Development:Allen Wyatt, Discovery Computing Inc. Special Art: Technical Editor: Will Iverson Proofreaders: David Faust, Andy Hollandbeck, Angel Perez, Carl William Pierce, Editorial Manager: Carol Sheehan Charles Spencer, Brian Walls, TECHBOOKS Media Development Supervisor:Richard Production Services Graves Indexer: TECHBOOKS Production Services Editorial Assistant: Amanda Foxworth Special Help: Laura Bowman Cartoons:Rich Tennant (www.the5thwave.com) Publishing and Editorial for Technology Dummies Richard Swadley,Vice President and Executive Group Publisher Andy Cummings,Vice President and Publisher Mary C. Corder,Editorial Director Publishing for Consumer Dummies Diane Graves Steele,Vice President and Publisher Joyce Pepple,Acquisitions Director Composition Services Gerry Fahey,Vice President of Production Services Debbie Stailey,Director of Composition Services www.it-ebooks.info a524720 FM.qxd 5/20/03 8:37 AM Page ix Contents at a Glance Introduction.................................................................1 Part I: Installing and Configuring WebLogic ..................7 Chapter 1: Introducing Application Servers ..................................................................9 Chapter 2: Installing WebLogic Server ..........................................................................17 Chapter 3: Gentlemen, Start Your WebLogic Engines .................................................35 Chapter 4: Configuring and Administering WebLogic ................................................45 Part II: Understanding WebLogic Components .............67 Chapter 5: Creating Web Applications ..........................................................................69 Chapter 6: Using EJBs ....................................................................................................87 Chapter 7: Using Entity Beans .....................................................................................107 Chapter 8: Stepping Up to Enterprise Applications ..................................................139 Part III: Employing Web Services ..............................153 Chapter 9: Building and Deploying Web Services .....................................................155 Chapter 10: Accessing Web Services ..........................................................................173 Chapter 11: Using WebLogic Workshop .....................................................................183 Part IV: The Forgotten Services .................................201 Chapter 12: Accessing Data with JDBC .......................................................................203 Chapter 13: Finding EJBs with JNDI ............................................................................219 Chapter 14: Using Transactions with JTA ...................................................................229 Chapter 15: Sending Messages Between Programs with JMS ..................................239 Part V: Big-Time, Heavy-Duty Server Configuration ....269 Chapter 16: Working with Server Clusters .................................................................271 Chapter 17: Tuning WebLogic Server .........................................................................289 Chapter 18: Implementing Security .............................................................................301 Part VI: The Part of Tens ..........................................319 Chapter 19: Ten Best Practices for Developers .........................................................321 Chapter 20: Ten Tips for Administrators ....................................................................327 Chapter 21: Ten Tasks Before Going Live ...................................................................333 Index.......................................................................339 www.it-ebooks.info