Skip to:Content
|
Bottom
Cover image for Mastering BEA weblogic server : best practices for building and deploying J2EE applications
Title:
Mastering BEA weblogic server : best practices for building and deploying J2EE applications
Publication Information:
Indianapolis, Ind. : Wiley Publishing, 2003
ISBN:
9780471281283
Added Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010050519 TK5105.8885.B4 M37 2003 Open Access Book Book
Searching...

On Order

Summary

Summary

Designed to show experienced developers how to become power developers with BEA WebLogic Covers BEA WebLogic Server version 8.1 and earlier versions A perfect companion to the bestselling book, Mastering Enterprise JavaBeans , Second Edition (0471-41711-4) Companion Web site includes technology updates and links to related sites


Author Notes

Gregory Nyberg is a technical architect, focusing on the development of enterprise J2EE applications using BEA WebLogic Server
Robert Patrick is Senior Director of Technology at BEA Systems, specializing in designing and troubleshooting large-scale systems built with BEA WebLogic Server
Paul Bauerschmidt is a former software engineer in the WebLogic Server Security Team at BEA Systems
Jeff McDaniel is Senior Director of the Technical Solutions Group at BEA Systems
Raja Mukherjee is Director of Systems Engineering at BEA Systems


Table of Contents

Acknowledgmentsp. xvii
Introductionp. xix
About the Authorsp. xxiii
Chapter 1 Building Web Applications in WebLogicp. 1
Java Servlets and JSP Key Conceptsp. 1
Characteristics of Servletsp. 2
Characteristics of JavaServer Pagesp. 8
Web Application Best Practicesp. 14
Ensure Proper Error Handlingp. 14
Use jsp:useBean to Reduce Scriptlet Codep. 17
Use Custom Tags for Selected Behaviorsp. 20
Cache Page Output to Improve Performancep. 23
Use Servlet Filtering for Common Behaviorsp. 28
Using Custom JSP Base Classesp. 32
Using Run-Time Expressions in JSP Directivesp. 32
Creating Excel Files Using Servlets and JSP Pagesp. 33
Viewing Generated Servlet Codep. 36
Programmatic Authentication in Web Applicationsp. 37
Chapter Reviewp. 38
Chapter 2 Choosing a Web Application Architecturep. 39
Architecture Key Conceptsp. 39
J2EE Application Tiersp. 40
Model-View-Controller Architecturep. 40
Common J2EE Design Patternsp. 41
Presentation-Tier Architecture Selectionp. 42
Presentation-Tier Requirementsp. 42
Other Architecture Considerationsp. 55
Candidate Presentation-Tier Architecturesp. 56
JSP-Centric Architecturep. 56
Servlet-Centric Architecturep. 58
Additional Frameworksp. 60
Chapter Reviewp. 61
Chapter 3 Designing an Example J2EE Applicationp. 63
Application Requirementsp. 63
Business Domain Modelsp. 64
Presentation Requirementsp. 65
Web Application Architecturep. 68
Presentation Approachp. 68
Self-Assemblyp. 70
Master Page Assemblyp. 73
Master Page Assembly with Page Display Servletp. 75
Business-Tier Interfacesp. 78
Displaying Bean Attributes on JSP Pagesp. 79
Relationships in Presentation Componentsp. 84
Action Classes Load Beans and Forms for Displayp. 85
Action Classes Perform Bean Updatesp. 87
Chapter Reviewp. 88
Chapter 4 Building an Example Web Applicationp. 89
Overview of Application Componentsp. 90
Constructing the Application Skeletonp. 91
Constructing the User Site Componentsp. 92
Reservation Information Componentsp. 92
Core Reservation Process Componentsp. 97
Targeted Offers Componentsp. 121
Construction of Administration Site Componentsp. 125
Authorization/Authentication Componentsp. 126
Property Maintenance Componentsp. 131
Chapter Reviewp. 146
Chapter 5 Packaging and Deploying WebLogic Web Applicationsp. 147
Packaging Web Applicationsp. 148
Web Application Directory Structurep. 148
Web Application Descriptor Filesp. 151
Precompiling JSP Componentsp. 160
Creating an Exploded Web Applicationp. 164
Creating a Web Application Archive Filep. 166
Deploying Web Applicationsp. 167
Automatic Deploymentp. 167
WebLogic Deployer Utility and Ant Taskp. 170
WebLogic Console Deploymentp. 173
Creating Required Users and Group for BigRez.comp. 174
Chapter Reviewp. 176
Chapter 6 Building Enterprise JavaBeans in WebLogic Serverp. 177
EJB Technology Overviewp. 177
EJB Component Typesp. 178
Stateless Session Beansp. 178
Stateful Session Beansp. 180
Entity Beansp. 181
Message-Driven Beansp. 199
WebLogic Server EJB Containerp. 200
EJB Container Basicsp. 200
EJB Life Cycle in WebLogic Serverp. 201
General WebLogic Server EJB Featuresp. 203
EJB Deployment/Redeploymentp. 203
Dynamic EJB Compilingp. 203
Referencing Other EJB Componentsp. 204
Session Bean Featuresp. 207
Stateful Session EJB Cache Managementp. 207
In-Memory Replication for Stateful Session EJBsp. 209
Entity Bean Featuresp. 211
Concurrency Strategiesp. 211
Caching Strategiesp. 223
Tuning Strategiesp. 232
Additional CMP Featuresp. 246
Message-Driven Bean Featuresp. 256
Chapter Reviewp. 257
Chapter 7 Building an Example EJB Applicationp. 259
Business-Tier Requirementsp. 260
Business Logic Requirementsp. 260
Object-Relational Mapping Requirementsp. 261
Data Access Requirementsp. 267
Other Business-Tier Requirementsp. 268
Review of Business-Tier Requirementsp. 268
Business-Tier Architecture Optionsp. 269
Stateless Services with JDBCp. 270
Stateless Services with Entity Bean Persistencep. 272
Stateless Services, Entity Beans, and Direct Interactionp. 277
Chosen Architecture for bigrez.comp. 280
EJB Construction Optionsp. 281
Manual Construction and Configurationp. 282
Using WebLogic Builder Utilityp. 283
Using the WebLogic EJBGen Utilityp. 284
Construction of Business-Tier Componentsp. 288
Construction of Entity Beansp. 288
Construction of Session Beansp. 293
Construction of Message-Driven Beansp. 294
Chapter Reviewp. 295
Chapter 8 Packaging and Deploying WebLogic EJB Applicationsp. 297
Creating an EJB Archive Filep. 298
Creating EJB Source Code and Descriptor Filesp. 300
Compiling EJB Componentsp. 302
Executing the EJB Compilerp. 302
Packaging Enterprise Applicationsp. 306
Enterprise Application Directory Structurep. 309
Enterprise Application Descriptor Filesp. 312
Packaging Utility Archives in Enterprise Applicationsp. 316
Creating an Exploded Enterprise Applicationp. 318
Creating an Enterprise Application Archive Filep. 320
Deploying EJB Applicationsp. 322
Creating Required Servicesp. 322
Automatic Deploymentp. 324
WebLogic Console Deploymentp. 325
Chapter Reviewp. 327
Chapter 9 Using WebLogic JMSp. 329
JMS Key Conceptsp. 330
Understanding the Messaging Modelsp. 330
Reviewing the JMS 1.0.2b APIp. 331
Upcoming JMS 1.1 Changesp. 336
The WebLogic JMS Providerp. 338
Understanding WebLogic JMS Serversp. 338
Clustering WebLogic JMSp. 338
Configuring WebLogic JMSp. 347
WebLogic JMS Application Designp. 361
Choosing a Destination Typep. 362
Locating Destinationsp. 362
Choosing the Appropriate Message Typep. 363
Compressing Large Messagesp. 365
Selecting a Message Acknowledgment Strategyp. 365
Designing Message Selectorsp. 367
Choosing a Message Expiration Strategyp. 369
Handling Poison Messagesp. 372
Handling Message Ordering Issuesp. 376
Using Transactionsp. 376
Using Multicast Sessionsp. 378
Handling Request/Reply Style Message Exchangep. 379
WebLogic JMS Programmingp. 382
Using WebLogic JMS with Servlets and EJBsp. 382
Consuming Asynchronous Messages on the Serverp. 384
External JMS Providersp. 389
Understanding the Messaging Bridgep. 390
Using Message-Driven Beansp. 390
Mapping External JMS Objects to WebLogic JNDIp. 391
Choosing an Integration Strategyp. 391
Chapter Reviewp. 393
Chapter 10 Using WebLogic Securityp. 395
WebLogic Security Overviewp. 396
WebLogic Security Frameworkp. 398
Embedded LDAP Serverp. 398
Default Security Providersp. 400
Using Compatibility Mode with the RealmAdapterp. 410
Using External Security Storesp. 410
Managing External LDAP Authenticationp. 410
Setting Up UNIX-Based Authenticationp. 413
Setting Up Windows Domain Authenticationp. 414
Custom Authentication Providersp. 415
Setting Up SSL/TLSp. 416
Reviewing SSL Technologyp. 416
Obtaining X.509 Certificatesp. 418
Configuring One-Way SSLp. 420
Configuring Two-Way SSLp. 421
Debugging SSL Problemsp. 425
Writing Security-Aware Java Clientsp. 425
Writing Java Clients That Use JAASp. 426
Writing Java Clients That Use SSLp. 429
Managing Application Securityp. 434
Setting Up J2EE Application Securityp. 434
Setting Up WebLogic Application Securityp. 443
Booting WebLogic Serverp. 448
Chapter Reviewp. 449
Chapter 11 Administering and Deploying Applications in WebLogic Serverp. 451
WebLogic Architecture Key Conceptsp. 451
Domain Architecturep. 452
WebLogic Server Architecturep. 453
WebLogic Server Clustering Architecturep. 461
Admin Serverp. 469
Node Managerp. 471
WebLogic Administration Key Conceptsp. 472
Server Statesp. 472
Server Self-Health Monitoringp. 474
Network Channelsp. 474
Configuring a WebLogic Server Domainp. 475
Setting Up a New Domainp. 478
Configuring Serversp. 483
Configuring the Clusterp. 486
Configuring Network Channelsp. 487
Setting Up the Node Managerp. 489
Operating System Configurationp. 493
Java Virtual Machine Configurationp. 494
Web Server Plug-in Configurationp. 494
Configuring Applications for WebLogic Serverp. 499
Monitoring WebLogic Server Applicationsp. 519
Using the Command-Line Administration Toolp. 519
Monitoring with the WebLogic Consolep. 521
Programmatic Monitoring with JMXp. 525
Monitoring via SNMPp. 529
Managing WebLogic Server Applicationsp. 533
Troubleshooting Application Issuesp. 534
Versioning Applicationsp. 536
Managing Failure Conditionsp. 536
Chapter Reviewp. 540
Chapter 12 Optimizing WebLogic Server Performancep. 541
Overview of System Performancep. 542
Reviewing the Core Principlesp. 542
Tuning a WebLogic Server-Based Applicationp. 544
Performance Best Practicesp. 567
Designing for Performancep. 567
Understanding Web Container Best Practicesp. 569
Understanding EJB Container Best Practicesp. 572
Applying Database Access Best Practicesp. 578
Troubleshooting Performance Problemsp. 584
Preparing for Troubleshootingp. 584
Bottleneck Identification and Correctionp. 584
Problem Resolutionp. 587
Common Application Server Performance Problemsp. 588
Java Stack Tracesp. 591
Chapter Reviewp. 596
Chapter 13 Development Environment Best Practicesp. 597
Defining Required Hardware and Softwarep. 598
Installing WebLogic Server Softwarep. 601
Configuring the Working Directoryp. 602
Managing Configuration Informationp. 604
Controlling the config.xml Configuration Filep. 604
Using MBean and WLShell Scriptsp. 605
Template Building/Replay Wizardsp. 609
Establishing a Build Processp. 610
Choosing Development Toolsp. 612
Powerful Java-Aware Editingp. 612
GUI Interface and Environmentp. 613
Integration with Source-Code Management Systemp. 614
Project and Build Processing Featuresp. 614
Debugging Featuresp. 615
Integration with Unit-Testing Packagesp. 618
Application-Server Deployment Featuresp. 619
Object Modeling Supportp. 619
Web Services Supportp. 620
Creating a Unit-Testing Infrastructurep. 620
The Importance of Unit Testingp. 621
JUnit Testing Frameworkp. 621
Testing Web Components with HTTPUnitp. 629
Chapter Reviewp. 632
Chapter 14 Production Environment Best Practicesp. 633
Deployment Strategiesp. 634
Evaluating Deployment Strategiesp. 634
Server Deployment Strategiesp. 636
Single-Site Deployment Strategiesp. 638
Multiple Site Deployment Strategiesp. 643
Designing Multiple-Site WebLogic Clustersp. 644
Implementing Clusters That Span Multiple Sitesp. 646
Implementing One Cluster per Sitep. 648
Global and Local Traffic Managementp. 650
Using Load Balancersp. 650
Using Local Load Balancers with WebLogic Serverp. 652
Using Global Load Balancers with WebLogic Serverp. 653
Production Security Strategiesp. 654
Understanding Application Data Flowp. 654
Understanding Firewall Layoutsp. 655
Using a Connection Filterp. 656
Locking Down Web Applicationsp. 658
Examining Other Security Considerationsp. 660
Using SSL Hardware Accelerationp. 663
Chapter Reviewp. 663
Chapter 15 Developing and Deploying Web Servicesp. 665
Reviewing the Underlying Technologyp. 665
SOAPp. 666
WSDLp. 666
UDDIp. 667
JAX-RPCp. 668
SAAJp. 668
Creating Web Services with WebLogic Serverp. 669
WebLogic Server's Web Services Architecturep. 669
Developing Web Services with WebLogic Serverp. 670
Creating a Web Service Starting with Javap. 675
Creating a Web Service Starting with WSDLp. 683
Creating Web Service Clients with WebLogic Serverp. 686
Moving Past the Basicsp. 694
Using Document-Style Messagingp. 694
Customizing a Web Service Home Pagep. 695
Publishing Static WSDLp. 696
Using Web Service Sessionsp. 696
Using Custom Serializersp. 697
Using SOAP Handlersp. 702
Using SOAP Attachmentsp. 705
Using JMS as the Transportp. 708
Using Web Services Securityp. 710
Adding Web Services to bigrez.comp. 716
Chapter Reviewp. 722
Indexp. 723
Go to:Top of Page