1. Trang chủ
  2. » Công Nghệ Thông Tin

websphere applicatiaon server administration using jython

496 874 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • Contents

  • Acknowledgments

  • About the Authors

  • Chapter 1 Introduction

    • Why Is This Book Necessary?

    • About the Websphere Application Server Product

    • This Book and Its Organization

  • Chapter 2 Jython Fundamentals

    • Introduction

    • Data Types

      • Numbers

      • Strings

      • Tuples

      • Lists

      • Accessing Sequence Elements

      • Dictionaries

    • Additional Information Types

      • Literals (Constants)

      • Variables Names (Identifiers)

      • Variables

      • Expressions

      • String Operators

      • Statement Separator

    • Comments

    • Coding Conventions

    • Summary

  • Chapter 3 Jython Statements

    • Expression Statements

      • The print Statement

    • Assignment Statements

      • Packing and Unpacking

      • Augmented Assignment

    • Slices

    • Simple Statements

      • The assert Statement

      • The break Statement

      • The continue Statement

      • The del Statement

      • The exec Statement

      • The import Statement

      • The pass Statement

      • The raise Statement

      • Control Flow

    • Compound Statements

      • The if Statement

      • loop Statements

      • The while Statement

      • The for Statement

      • The try Statement

    • Functions

      • Function Definitions

      • Namespaces

      • The global Statement

      • Function Parameters

      • The return Statement

      • Default Parameter Evaluation

    • Summary

  • Chapter 4 Jython Classes

    • Class Statement

      • Example class Definition

      • Object Instantiation

      • Built-in Constants

      • Built-in Data Types

    • List Methods

    • Dictionary Methods

    • String Methods

      • String Formatting

    • Built-in Functions

    • Summary

  • Chapter 5 Jython Modules

    • Jython Module Basics

      • The import Statement

      • nested_scopes

    • Packages

    • Errors and Exceptions

      • Built-in Exceptions

    • Functional Programming

    • Using Java Objects and Libraries

      • Jython Standard Library

      • getopt() Module

      • Regular Expressions (RegExp)

    • Summary

  • Chapter 6 wsadmin

    • wsadmin Options

      • Usage Information

      • The Java Virtual Machine Initialization Phase

      • The wsadmin Environment Initialization Phase

    • The Connection Phase

    • Defining the Scripting Language

    • Trace-Related Options

    • wsadmin Profile Script Files

    • Commands and Script Files

      • Interactive/Interpretive wsadmin Session

    • Summary

  • Chapter 7 Introduction to Admin Objects

    • The Administrative Scripting Objects

    • Help for the Help Object

    • Help for MBeans

      • Help for MBean Attributes

      • Help for MBean Operations

      • Help for Additional MBean Information

    • Help for Other Administrative Objects

      • Help for WebSphere Messages

    • Useful Information

    • Summary

  • Chapter 8 The AdminConfig Object

    • AdminConfig Overview

      • Configuration Identifier (config ID)

      • Containment Path

      • Configuration Types

    • Using a config ID

    • Show and Tell Methods

    • Create and Modify Methods

    • Configuration Verification/Validation

    • Document Manipulation Methods

    • Miscellaneous Methods

    • Summary

  • Chapter 9 The AdminControl Object

    • Environment Information and Manipulation

    • MBean Support Methods

    • Objects, Names, and Instances

    • Attribute-Related Methods

    • Miscellaneous Methods

    • *_jmx Methods

    • Summary

  • Chapter 10 The AdminApp Object

    • Application Informational Methods

    • Application Installation Methods

    • Edit, Update, and Uninstall

    • Miscellaneous AdminApp Methods

    • Summary

  • Chapter 11 The AdminTask Object—Server Management

    • Introduction

    • Simple One-Line Examples

    • ServerType-Related Methods

    • Creating Servers and Clusters

    • Server-Related Commands

      • create*Server Optional and Required Steps

    • Server Template-Related Commands

    • JVM-Related Methods

    • JVM System Properties

    • JVM Properties

    • z/OS-Specific Methods

      • Miscellaneous ServerManagement Methods

    • Reference Section

      • Node Group Command Group and Core Group Command Group

      • createCoreGroup

      • createNodeGroup

      • addNodeGroupMember

      • removeNodeGroupMember

      • removeNodeGroup

      • moveClusterToCoreGroup

      • moveServerToCoreGroup

      • deleteCoreGroup

      • AdminReports Command Group

      • reportConfigInconsistencies

      • ReportConfiguredPorts

      • ClusterConfigCommands Command Group

      • createCluster

      • createClusterMember

      • deleteClusterMember

      • deleteCluster

      • ConfigArchiveOperations Command Group

      • exportServer

      • importServer

      • GenerateSecurityConfigCommand Command Group

      • generateSecConfigReport

      • PortManagement Command Group

      • listApplicationPorts

      • listServerPorts

      • ServerManagement Command Group

      • listServer

      • getServerType

      • listServerTypes

      • showServerInfo

      • showServerTypeInfo

      • createApplicationServer

      • createApplicationServerTemplate

      • deleteServer

      • setJVMProperties

      • setJVMSystemProperties

      • setProcessDefinition

      • Server Management Methods that Do Not Belong to Any Command Group

      • createServerType

    • Summary

  • Chapter 12 Scripting and Security

    • WebSphere Security Basics

    • JAAS (J2C) Aliases

      • Create a J2C (JAAS) Alias

      • Viewing JAAS Aliases

      • Modify a JAAS Alias

      • Delete a JAAS Alias

    • Configuring Application Security

      • Enabling/Disabling Administrative and Application Security

      • Mapping Java EE Roles

      • Review the Current and Available Mappings

      • Mapping Roles to Users and/or Groups

    • Enable/Disable Java 2 Security

    • LDAP Failover

      • Viewing the Hosts

      • Adding Additional LDAP Hosts

      • Setting the Host List

      • Removing LDAP Hosts

    • Federated Registries (and Other Essentially Undocumented Scripting Areas)

    • Multiple Security Domains (WebSphere V7)

    • Additional Security Topics

      • Bus Security

      • Datasources

      • Web Services

    • AdminTask Security Reference

      • SecurityConifgurationCommands Group

      • SecurityDomainCommands Group

      • SecurityRealmInfoCommands

      • WIMManagementCommands

      • WizardCommands

      • JACCUtilityCommands

      • IdMgrRepositoryConfig

  • Chapter 13 Databases and Authorization

    • Database Basics

      • Terminology

      • A Simple Example

    • Troubleshooting Configuration Problems

    • Advanced Settings

    • Databases Reference Section

      • JDBCProviderManagement Group

      • VariableConfiguration Group

      • Useful MBeans

    • Summary

  • Chapter 14 Messaging

    • An Introduction to Messaging

    • Messaging Basics

    • Terminology

    • Example: Creating a Bus

    • Example: Deleting a Bus

    • Security

      • Enabling Bus Security

      • Example: Enabling Bus Access Security

      • Example: Enabling Transport Security

    • Reference Section

      • Creating Message Buses

      • Deleting a Bus and Bus Components

      • Modifying a Bus and Bus Components

      • Displaying Buses and Bus Components

      • Bus Security

    • Summary

  • Chapter 15 Administering Web Services

    • Web Services Basics

      • WS-I Profiles

      • WSDL and SOAP

      • A Web Service Example

      • Web Services Runtimes

      • Managing Web Services

    • Exploring Web Services

      • Listing Web Services

      • Listing Web Services Information

      • Exporting the WSDL for a Web Service

    • Web Service Policy Sets

      • Policy Set Bindings

      • Policy Set Attachment

    • Policy Topics Summary

    • Additional Topics

      • Enable/Disable Endpoints

      • WS-Notification

      • Web Services and the Service Integration Bus

      • Mediations

      • Web Services Gateway

      • Online References

    • AdminTask Web Services Reference

      • SIBWebServices Group

      • KeyManagerCommands

      • KeyStoreCommands

      • KeySetCommands

      • PolicySetManagement Group

      • WebServicesAdmin Group

  • Chapter 16 Version 7.0 Scripting Libraries

    • Library Organization

    • Scripting Library Help

      • Default Failure Action

    • AdminApplication Script Library Module

      • AdminApplication Group 1—Install and Uninstall Applications

      • AdminApplication Group 2—Query Application Configurations

      • AdminApplication Group 3—Update Applications

      • AdminApplication Group 4—Export Applications

      • AdminApplication Group 5—Configure Application Deployment

      • AdminApplication Group 6—Start/Stop Applications

    • Business-Level Applications (AdminBLA)

    • Java 2 Connector (AdminJ2C) Library Module

    • AdminJDBC Library Module

    • AdminJMS Library Module

    • AdminResources Library Module

    • AdminAuthorizations Library Module

    • AdminClusterManagement Library Module

    • AdminServerManagement Library Module

      • AdminServerManagement: Group 1—Server Configuration

      • AdminServerManagement: Group 2—ServerTracingAndLogging Configuration

      • AdminServerManagement: Group 3—OtherServicesConfiguration

    • AdminNodeGroupManagement Library Module

    • AdminNodeManagement Library Module

    • AdminLibHelp and AdminUtilities Library Modules

    • Summary

  • Index

    • A

    • B

    • C

    • D

    • E

    • F

    • G

    • H

    • I

    • J

    • K

    • L

    • M

    • N

    • O

    • P

    • Q

    • R

    • S

    • T

    • U

    • V

    • W

    • X–Z

Nội dung

ptg From the Library of Lee Bogdanoff ptg Rapid Portlet Development with WebSphere Portlet Factory Step-by-Step Guide for Building Your Own Portlets by David Bowley ISBN: 0-13-713446-0 Expert developer David Bowley walks you through several of today’s most common portlet development scenarios, demonstrating how to create powerful, robust portlets quickly and cost-effectively. Each walkthrough contains all the step-by-step instructions, detailed guidance, fast answers, and working sample code you need to get tangible results immediately. As the best resource available on WebSphere Portlet Factory, this book refl ects Bowley’s unsur- passed experience constructing large enterprise portals. Bowley covers everything from back-end integration to user interface and AJAX techniques, helping you choose the right builder tool for each task and defi ne high-level instructions that gener- ate superior code artifacts. His example projects are simple enough to understand easily, but sophisticated enough to be valuable in real-world development. WebSphere Business Integration Primer Process Server, BPEL, SCA, and SOA by Ashok Iyengar, Vinod Jessani, and Michele Chilanti ISBN: 0-13-224831-X Using WebSphere ® Business Integration (WBI) technology, you can build an enterprise-wide Business Integration (BI) infrastructure that makes it easier to connect any business resources and functions, so you can adapt more quickly to the demands of customers and partners. Now there’s an introductory guide to creating standards-based process and data integration solutions with WBI. WebSphere Business Integration Primer thoroughly explains Service Component Architecture (SCA), basic business processes, and complex long-running business fl ows, and guides you to choose the right process integration architecture for your requirements. Next, it intro- duces the key components of a WBI solution and shows how to make them work together rapidly and effi ciently. This book will help developers, technical professionals, or managers understand today’s key BI issues and technologies, and streamline business processes by combining BI with Service Oriented Architecture (SOA). Related Books of Interest Sign up for the monthly IBM Press newsletter at ibmpressbooks/newsletters From the Library of Lee Bogdanoff ptg ii Contents Related Books of Interest Visit ibmpressbooks.com for all product information IBM WebSphere DataPower SOA Appliance Handbook by Bill Hines, John Rasmussen, Jaime Ryan, Simon Kapadia, Jim Brennan ISBN: 0-13-714819-4 IBM WebSphere DataPower SOA Appliance Handbook begins by introducing the rationale for SOA appliances and explaining how DataPower appliances work from network, security, and Enterprise Service Bus perspectives. Next, the authors walk through DataPower installation and confi guration; then they present deep detail on DataPower’s role and use as a network device. Using many real-world examples, the authors systematically introduce the services available on DataPower devices, especially the “big three”: XML Firewall, Web Service Proxy, and Multi- Protocol Gateway. They also present thorough and practical guidance on day-to-day DataPower management, including monitoring, confi guration, build, and deploy techniques. WebSphere Engineering A Practical Guide for WebSphere Support Managers and Senior Consultants by Ying Ding ISBN: 0-13-714225-0 In WebSphere Engineering, author Ying Ding shows how to maximize the WebSphere platform’s reliability, stability, scalability, and per- formance for large enterprise systems. You’ll fi nd insightful discussions of each option and strategy for managing WebSphere, including practical guidance on making the right tradeoffs for your environment. Coverage includes • Planning, hiring, training, funding, and building a world-class WebSphere engineering support organization • Implementing tight standards and consistent, comprehensive processes for managing the entire WebSphere engineering life cycle • Creating optimal testing environments, administering parallel testing pipelines, and managing testing workloads • Empowering production support teams with knowledge, system privileges, and the right tools From the Library of Lee Bogdanoff ptg Contents iii Related Books of Interest Sign up for the monthly IBM Press newsletter at ibmpressbooks/newsletters The New Language of Business Carter ISBN: 0-13-195654-X SOA Governance Brown, Laird, Gee, Mitra ISBN: 0-13-714746-5 Dynamic SOA and BPM Fiammante ISBN: 0-13-701891-6 The Greening of IT Lamb ISBN: 0-13-7155083-0 Enterprise Master Data Management Dreibelbis, Hechler, Milman, Oberhofer, van Run, Wolfson ISBN: 0-13-236625-8 Enterprise Java Programming with IBM WebSphere, Second Edition Brown, Craig, Hester, Pitt, Stinehour, Weitzel, Amsden, Jakab, Berg ISBN: 0-321-18579-X Executing SOA A Practical Guide for the Service-Oriented Architect by Norbert Bieberstein, Robert G. Laird, Dr. Keith Jones, and Tilak Mitra ISBN: 0-13-235374-1 In Executing SOA, four experienced SOA implementers share realistic, proven, “from-the- trenches” guidance for successfully delivering the largest and most complex SOA initiative. This book follows up where the authors’ bestsell- ing Service-Oriented Architecture Compass left off, showing how to overcome key obstacles to successful SOA implementation and identifying best practices for all facets of execution— technical, organizational, and human. Among the issues it addresses include introducing a services discipline that supports collaboration and information process sharing; integrating services with preexisting technology assets and strategies; choosing the right roles for new tools; shift- ing culture, governance, and architecture; and bringing greater agility to the entire organizational lifecycle, not just isolated projects. Listen to the author’s podcast at: ibmpressbooks.com/podcasts From the Library of Lee Bogdanoff ptg This page intentionally left blank From the Library of Lee Bogdanoff ptg WebSphere Application Server Administration Using Jython From the Library of Lee Bogdanoff ptg This page intentionally left blank From the Library of Lee Bogdanoff ptg IBM WebSphere [SUBTITLE ] Deployment and Advanced Configuration Roland Barcia, Bill Hines, Tom Alcott, and Keys Botzum WebSphere Application Server Administration Using Jython Robert A. Gibson, Arthur Kevin McGrath, Noel J. Bergman IBM Press Pearson plc Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Cape Town • Sydney • Tokyo • Singapore • Mexico City Ibmpressbooks.com From the Library of Lee Bogdanoff ptg The authors and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein. © Copyright 2010 by International Business Machines Corporation. All rights reserved. Note to U.S. Government Users: Documentation related to restricted right. Use, duplication, or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corporation. IBM Press Program Managers: Steven M. Stansel, Ellice Uffer Cover design: IBM Corporation Associate Publisher: Greg Wiegand Marketing Manager: Kourtnaye Sturgeon Acquisitions Editor: Katherine Bull Publicist: Heather Fox Development Editor: Kendell Lumsden Managing Editor: Kristy Hart Designer: Alan Clements Project Editor: Anne Goebel Copy Editor: Language Logistics, LLC Indexer: WordWise Publishing Services, LLC Compositor: Jake McFarland Proofreader: Water Crest Publishing Manufacturing Buyer: Dan Uhrig Published by Pearson plc Publishing as IBM Press IBM Press offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact: U.S. Corporate and Government Sales 1-800-382-3419 corpsales@pearsontechgroup.com. For sales outside the U.S., please contact: International Sales international@pearson.com. From the Library of Lee Bogdanoff ptg The following terms are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both: IBM, the IBM logo, IBM Press, AIX, Cloudscape, DB2, developerWorks, Rational, Redbooks, WebSphere, and z/OS. Microsoft, Windows, and C# are trademarks of Microsoft Corporation in the United States, other countries, or both. Java, J2EE, EJB, JDBC, and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. UNIX is a registered trademark of The Open Group in the United States and other countries. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. Other company, product, or service names may be trademarks or service marks of others. Library of Congress Cataloging-in-Publication Data Gibson, Robert A., 1954– WebSphere application server administration using Jython / Robert A. Gibson, Arthur Kevin McGrath, Noel J. Bergman. p. cm. ISBN 978-0-13-700952-7 1. WebSphere. 2. Web servers. 3. Application software—Development. 4. Jython (Computer program language) I. McGrath, Arthur Kevin. II. Bergman, Noel. III. Title. TK5105.8885.W43.G53 2009 005.1'17—dc22 2009030406 All rights reserved. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to: Pearson Education, Inc. Rights and Contracts Department 501 Boylston Street, Suite 900 Boston, MA 02116 Fax (617) 671-3447 ISBN-13: 978-0137009526 ISBN-10: 0137009526 Text printed in the United States on recycled paper at R.R. Donnelley in Crawfordsville, Indiana. First printing October 2009 From the Library of Lee Bogdanoff [...]... exportServer importServer GenerateSecurityConfigCommand Command Group generateSecConfigReport PortManagement Command Group listApplicationPorts listServerPorts ServerManagement Command Group listServer getServerType listServerTypes showServerInfo showServerTypeInfo createApplicationServer createApplicationServerTemplate deleteServer setJVMProperties setJVMSystemProperties setProcessDefinition Server Management... 190 194 196 198 Chapter 11 The AdminTask Object Server Management Introduction Simple One-Line Examples ServerType-Related Methods Creating Servers and Clusters Server- Related Commands create *Server Optional and Required Steps Server Template-Related Commands JVM-Related Methods JVM System Properties JVM Properties z/OS-Specific Methods Miscellaneous ServerManagement Methods Reference Section Node Group... About the WebSphere Application Server Product The WebSphere Application Server is a large and complex product As such, it is function-rich and can be configured and used in numerous ways But you probably know that already The kind of person likely to pick up this book and consider buying it is someone who has an understanding of what the WebSphere Application Server is and just how challenging its administration. .. documentation2) This book is focused on the topic of scripting for the WebSphere Application Server environment In writing this book, we spent a great deal of time trying to understand this beast and what is required to administer a WebSphere Application Server using the examples that exist in the available documentation As a WebSphere Application Server technical support analyst and team lead, and as instructors,... Library Module AdminResources Library Module AdminAuthorizations Library Module AdminClusterManagement Library Module AdminServerManagement Library Module AdminServerManagement: Group 1 Server Configuration AdminServerManagement: Group 2—ServerTracingAndLogging Configuration AdminServerManagement: Group 3—OtherServicesConfiguration AdminNodeGroupManagement Library Module AdminNodeManagement Library Module... fact, have features that are not part of the version of Jython provided with the WebSphere product you are using That said, should you find code in a book or on the Internet, be sure to test it, perhaps even using an interactive wsadmin session, to ensure that it does what you expect Introduction A scripting interface for the WebSphere Application Server environment has been available for numerous versions... introduced Jython as an alternative scripting language Support for both Jacl and Jython continued and improved through version 6.0 of the product Jython is now the preferred scripting language and as such is the topic of discussion for this book With the implementation of numerous alternative languages for the WebSphere Application Server Java Virtual Machine (JVM), you may wonder what sets Jython apart... the JVM boasts many advantages For one, Jython allows for close interaction between the administrative scripts and the application server environment Additionally, Jython scripts can easily access Java (and therefore WebSphere Application Server) libraries, objects, properties, and resources In the following sections, we look at some of the elements that comprise Jython s productivity advantage— namely... discuss Jython. 3 Chapters 2 through 5 describe Jython with enough detail that those unfamiliar with it should be able to readily “pick up” the language and use it effectively 2 http://www.IBM.com/software/webservers/appserv/was/library/ Python is a programming language, and Jython is an implementation of that language We won’t worry about this distinction and will continue to refer to it as the Jython. .. learn its syntax and semantics What does this opening quote mean for WebSphere Application Server administrators? It has a few implications The fact that Jython is an implementation of Python means that Jython is based on a solid and well-designed language The fact that it is implemented in Java means that it fits in seamlessly with the WebSphere product, which is also implemented in Java What does this . Command Group 233 listServer 233 getServerType 233 listServerTypes 233 showServerInfo 234 showServerTypeInfo 234 createApplicationServer 234 createApplicationServerTemplate 235 deleteServer 236 setJVMProperties. Robert A., 1954– WebSphere application server administration using Jython / Robert A. Gibson, Arthur Kevin McGrath, Noel J. Bergman. p. cm. ISBN 978-0-13-700952-7 1. WebSphere. 2. Web servers. 3 Bogdanoff ptg WebSphere Application Server Administration Using Jython From the Library of Lee Bogdanoff ptg This page intentionally left blank From the Library of Lee Bogdanoff ptg IBM WebSphere [SUBTITLE

Ngày đăng: 27/10/2014, 01:04

TỪ KHÓA LIÊN QUAN

w