App Server Focus:Best Practices for Writing EJB
Total Page:16
File Type:pdf, Size:1020Kb
ANNOUNCINGWEBSERVICESEDGE 2001P.103 TM The World’s Leading Java Resource Java COM April 2001 Volume:6 Issue:4 Sept 23–26, 2001 New York, NY 98 Oct 22–25, 2001 Santa Clara, CA 2001 104 Editorial by Sean Rhody pg. 5 App Server Focus: Best Practices for Sandra L. Emerson, From the Editor If you write EJBs Michael Girdley & Rob Woollen for aapp servers, these best by Alan Williamson pg. 7 Writing EJB Applications practices are for Avoid reinventing the wheel yJou 8 Enterprise Java 1 2 by Tony Loton pg. 60 J2EE: Guaranteed Messaging with JMS David Chappell Make sure your business-critical data & Richard Monson-Haefel Product Reviews 3 WebSphere 3.5 pg. 84 reaches its destination PART 2 18 n? Borland AppServer 4.5 pg. 100 4 App Server Focus: From Web Sites to Phil Costa VisualAge Repository How can app servers ease the transition? 26 by Tim deBoer, Steve Francisco Web Services and Wireless E1 A2 C2 B3 & Ellen McKay pg. 88 Server Replica S E2 CORBA Corner: OMG’s New Fault Tolerant 1 D3 Jon Siegel Java Code CORBA Specification Online redundancy can save the day 32 by Anthony Meyer pg. 92 create a foundation App Server Focus: Create a Foundation N Matt Creason First Look CocoBase pg. 106 Build an application server infrastructure EJB JSP 40 create a foundation HTTP RETAILERS PLEASE DISPLAY r e r u t c u r t s a r f n i app JLink: Creating Reusable Enterprise e Mani Malarvannan UNTIL JUNE 30, 2001 v r e $4.99US $6.99CAN Components Using J2EE Cybelink’s Jlinks architecture PART 2 44 E Applications ce and Scalability App Server Focus: Building J2EE Apps for EEWRITTEN BY MISHA DAVIDSON Misha Davidson Performance and Scalability Techniques, optimizations, and examples 50 App Server Focus: Application Server Sudhakar Ramakrishnan Metamorphosis & Christopher G. Chelliah 9 3 The essential capabilities 6 66 EDITORIAL SEAN RHODY, FOUNDING EDITOR/CHIEF CORPORATE EDITOR EDITORIAL ADVISORY BOARD JEREMY ALLAIRE, TED COOMBS, ARTHUR VAN HOFF, JIM MILBERY, GEORGE PAOLINI, KIM POLESE, SEAN RHODY, RICK ROSS, AJIT SAGAR, BRUCE SCOTT, RICHARD SOLEY, ALAN WILLIAMSON FOUNDING EDITOR/CHIEF CORPORATE EDITOR: Living on SEAN RHODY EDITORIAL DIRECTOR: JEREMY GEELAN EDITOR-IN-CHIEF: ALAN WILLIAMSON EXECUTIVE EDITOR: M’LOU PINKHAM ASSOCIATE ART DIRECTOR: LOUIS F. CUFFARI MANAGING EDITOR: CHERYL VAN SISE EDITOR: NANCY VALENTINE the Edge ASSOCIATE EDITORS: JAMIE MATUSOW GREGORY LUDWIG KEN SILVER his is my first note to let everyone know JMS, JDBC, and so on. In particular, EDITORIAL INTERN: NIKI PANAGOPOULOS about the plans for our very own, SYS- we’ll cover the latest EJB standards, TECHNICAL EDITOR: BAHADIR KARUV, PH.D. PRODUCT REVIEW EDITOR: JIM MILBERY CON–sponsored JavaEdge2001 Inter- patterns for EJB design, deployment T <written by ph INDUSTRY NEWS EDITOR: LEE PARSEGHIAN national Java Developer Conference & Expo. issues, and JMS. J2EE EDITOR: AJIT SAGAR This year’s conference will be held in New York The fourth track, Working with WRITERS IN THIS ISSUE City from September 23 to September 26. As a I-Technology, will focus on the BILL BALOGLU, STEVE BENFIELD, DAVID CHAPPELL, CHRISTOPHER G. CHELLIAH, PHIL transition? COSTA, MATT CREASON, MISHA DAVIDSON, TIM DEBOER, SANDRA L. EMERSON, NEAL corporation, SYS-CON has committed to pro- processes and procedures of soft- FORD, STEVE FRANCISCO, MICHAEL GIRDLEY, TONY LOTON, viding leading-edge information, training, and ware engineering using Java. REATE A FOUNF cation MANI MALARVANNAN, FLOYD MARINESCU, ELLEN MCKAY, ANTHONY MEYER, JIM MILBERY, cture RICHARD MONSON-HAEFEL, BILLY PALMIERI, SUDHAKAR RAMAKRISHNAN, SEAN RHODY, exhibits in a number of areas that we serve via Topics such as “UML,” “Object JON SIEGEL, ALAN WILLIAMSON, ROB WOOLLEN publications. In addition to the JavaEdge con- Modeling,” “Project Planning,” and create a foundation ference, we’ve also scheduled conferences for “Testing and Deploying Appli- SUBSCRIPTIONS r e r u t c u r t s a r f n i app e andv Scalability FOR SUBSCRIPTIONS AND REQUESTS FOR BULK ORDERS, XML (XMLEdge2001), wireless (Wireless- cations” will enlighten managers r e PLEASE SEND YOUR LETTERS TO SUBSCRIPTION DEPARTMENT s EEWRITTEN BY MISHA DA Edge2002), Linux (LinuxEdge2002), and and senior technologists. SUBSCRIPTION HOTLINE:[email protected] ColdFusion (ColdFusionEdge2002). It’s our Practical Business Solutions, our COVER PRICE: $4.99/ISSUE DOMESTIC: $69.99/YR. (12 ISSUES) plan to offer developers, managers, and busi- final track, showcases the use of Java CANADA/MEXICO: $79.99/YR. OVERSEAS: $99.99/YR. nesspeople additional choices and opportuni- in industry and the availability of (U.S. BANKS OR MONEY ORDERS). BACK ISSUES: $10/EA., INTERNATIONAL $15/EA. ties to meet vendors, understand technology, products and solutions along any PUBLISHER,PRESIDENT,AND CEO: FUAT A. KIRCAALI VICE PRESIDENT,PRODUCTION & DESIGN: JIM MORGAN network with their peers, and leverage the number of lines. A variety of vendors SENIOR VICE PRESIDENT,SALES & MARKETING: CARMEN GONZALEZ resources of the entire Java community. will present on topics ranging from VICE PRESIDENT,SALES & MARKETING: MILES SILVERMAN VICE PRESIDENT,SYS-CON EVENTS: CATHY WALTERS This year I have the honor of serving as “Financial Services” and “CRM” to TRADE SHOW MANAGER: DONA VELTHAUS technical chairman for the JavaEdge2001 “Supply Chain.” Also included will be Java solu- SALES EXECUTIVE,EXHIBITS: MICHAEL PESICK ADVERTISING ACCOUNT MANAGERS: ROBYN FORMA conference. We’ve decided to present five ses- tion vendors for subjects like “Content MEGAN RING sion tracks designed to maximize your ability Management,” “Personalization,” and “Port- RONALD J. PERRETTI ASSOCIATE SALES MANAGERS: CHRISTINE RUSSELL to learn and leverage. The tracks are Wireless als.” CARRIE GEBERT Java and J2ME, J2SE, J2EE, Working with I- In each track we plan to have a mix of sev- ALISA CATALANO VICE PRESIDENT,CIRCULATION: AGNES VANEK Technology, and Practical Business Solutions. eral experience levels in order to accommo- NEWSSTAND SALES MANAGER: CHERIE JOHNSON Obviously, the first three tracks strongly mir- date the beginner, the experienced developer, ART DIRECTOR: ALEX BOTERO ASSOCIATE ART DIRECTORS: CATHRYN BURAK ror the way Java itself is structured. the expert, and the project manager or CIO. RICHARD SILVERBERG With the explosion of cell phones, the grow- The conference will also have an exhibit ASSISTANT ART DIRECTORS: ABRAHAM ADDO AARATHI VENKATARAMAN ing presence of networked PDAs, and an floor, where you can interact with numerous WEBMASTER: ROBERT DIAMOND increase in the sophistication of non-PC vendors to discuss their products and solu- WEB DESIGNERS: STEPHEN KILMURRAY GINA ALAYYAN devices, J2ME is positioned to become an inte- tions in a traditional setting. We’re looking WEB DESIGNER INTERN: PURVA DAVE gral part of the post-PC world. The J2ME track forward to an authors day, where we’ll have JDJSTORE.COM: ANTHONY D. SPITZER ASSISTANT CONTROLLER: JUDITH CALNAN will explore wireless technology, including WAP the authors of a number of current Java CREDIT & COLLECTIONS: CYNTHIA OBIDZINSKI and other protocols. We’ll also have sessions on books, as well as our own authors, available ACCOUNTS PAYABLE: JOAN LAROSE some of the KVMs available, and information to meet with you and sign autographs. EDITORIAL OFFICES on porting applications to small devices. As the technology chair, I’m interested in SYS-CON MEDIA 135 CHESTNUT RIDGE RD., MONTVALE, NJ 07645 TELEPHONE: 201 802-3000 FAX:201 782-9600 Important issues such as memory constraints what you have to say. The reality is, this is your JAVA DEVELOPER’S JOURNAL (ISSN#1087-6944) is published monthly and display limitations will also be covered. conference, and I want to make sure you get (12 times a year) for $69.99 by SYS-CON Publications, Inc., 135 Chestnut Ridge Road, Montvale, NJ 07645. Periodicals postage rates are paid at The J2SE track will focus on application the most you can out of it. We have a call for Montvale, NJ 07645 and additional mailing offices. POSTMASTER: Send address changes to: JAVA DEVELOPER’S JOURNAL, SYS-CON Publications, Inc., development using Java. There will be some papers open at the moment on our Web site 135 Chestnut Ridge Road, Montvale, NJ 07645. overlap with J2EE, but this track will focus on (www.sys-con.com/javaedge/papers. ©COPYRIGHT aspects of Java programming that are more cfm) where industry professionals can submit Copyright © 2001 by SYS-CON Publications, Inc. All rights reserved. No part of this publication may be reproduced or transmitted in any form or by any pertinent to pure Java applications. Topics will possible topics. We’re also actively working means, electronic or mechanical, including photocopy or any information storage and retrieval system, without written permission. For promotional reprints, contact reprint coordi- include AWT and Swing, 2D and 3D program- with a variety of sources to line up the most nator. SYS-CON Publications, Inc., reserves the right to revise, republish and authorize its readers to use the articles submitted for publication. ming, speech and telephony, mail, and that appropriate content for the conference. But I W ORLDWIDE DISTRIBUTION BY dreaded topic – multithreaded programming. want to know what you, our community, need. CURTIS CIRCULATION COMPANY Our J2EE track will focus on the core tech- Please drop me a line with your suggestions at 730 RIVER ROAD, NEW MILFORD NJ 07646-3048 PHONE: 201 634-7400 nologies of the Enterprise Edition – EJB, JSP, [email protected]. See you on the Edge. Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc., in the United States and other countries. SYS-CON Publications, Inc., is independent of Sun Microsystems, Inc. All brand and product names used on these pages are trade names, service marks or trademarks of their respective companies. [email protected] AUTHOR BIO Sean Rhody is the founding editor of Java Developer’s Journal.