Web Services World Tour Don't Miss It! P.83
Total Page:16
File Type:pdf, Size:1020Kb
WEB SERVICES WORLD TOUR DON’T MISS IT! P.83 TM Java COM COMING TO A CITY NEAR YOU SEE PAGE 83 FOR DETAILS 2002 BOSTON - - - - - - - - JULY 10 SAN FRANCISCO - - AUGUST 6 SEATTLE - - - - - - - AUGUST 27 AUSTIN - - - - - - - - SEPTEMBER 10 LOS ANGELES - - - - SEPTEMBER 19 SAN JOSE - - - - - - OCTOBER 3 AND MANY MORE! Secure Communication: Eric Simmerman Certificate Authorization in Your J2EE PKI Integrate self-certified certificates with J2EE systems via JSSE 8 From the Editor Alan Williamson pg. 5 Feature: Building Transformational Bill Dettelback Web Services... with J2EE and an XML database 16 J2EE Editorial EJB Spec 2.0: Programming Restrictions Leander van Rooijen Ajit Sagar pg. 7 in EJB Development Building scalable enterprise applications 24 J2SE Editorial Jason Bell pg. 40 Showdown: Are You Ready to Rumble? Michael Deasy .NET vs J2EE Smackdown: the raging debate in the developer community 36 J2ME Editorial Java Class Files: Hello World! in 70 Bytes Norman Richards Jason R. Briggs pg. 62 Take the challenge – create the smallest Java class 44 Industry Commentary Data Security & Mobility: Java Card 2.2 Joseph Smith Ken Greenwood pg. 64 Specifications Overview Java Card engineering with RMI specifications 66 Cubist Threads Feature: Optimizing Java Performance Carl Barratt Blair Wyman pg. 94 in Heritage Designs The advantages and disadvantages 70 SYS -CON MEDIA JDJ Labs: BEA WebLogic Workshop Joseph A. Mitchko Create and deploy Web services 76 Sonic Software Zero G www.sonicsoftware.com/jdj www.zerog.com 2 JULY 2002 JULY 2002 3 Java COM Java COM FROMF THE EDITORDI J2ME INTERNATIONAL ADVISORY BOARD • CALVIN AUSTIN (Lead Software Engineer, J2SE Linux Project, Sun Microsystems), • JAMES DUNCAN DAVIDSON (JavaServlet API/XMP API, Sun Microsystems), • JASON HUNTER (Senior Technologist, CollabNet), • JON S. STEVENS (Apache Software ALANWILLIAMSON EDITOR-IN-CHIEF Foundation), • RICK ROSS (President, JavaLobby), • BILLROTH (Group Product Manager, Sun Microsystems), • BILL WILLETT (CEO, Programmer’s Paradise) • BLAIR WYMAN (Chief Software Architect IBM Rochester) EDITORIAL J2SE EDITOR-IN-CHIEF: ALAN WILLIAMSON EDITORIAL DIRECTOR: JEREMY GEELAN Java ina Flash! EXECUTIVE EDITOR: NANCY VALENTINE J2EE EDITOR: AJIT SAGAR J2ME EDITOR: JASON R. BRIGGS J2SE EDITOR: JASON BELL PRODUCT REVIEW EDITOR: JIM MILBERY hen I wrote my last editorial I farewell to Keith and thank him for his FOUNDING EDITOR: SEAN RHODY was on a plane to Toronto. What insight over the last few months. He’ll still be I neglected to tell you was popping up from time to time when his PRODUCTION W J2EE where I was off to after Toronto. It was to schedule permits, so you haven’t heard the VICE PRESIDENT,PRODUCTION AND DESIGN: JIM MORGAN Redmond, Washington, as the guest of last of him. The J2SE mantel will be taken up ASSOCIATE ART DIRECTOR: LOUIS F. CUFFARI EDITOR: M’LOU PINKHAM Microsoft, where they showed me the virtues by Jason Bell, a JDJ writer of old, who will MANAGING EDITOR: CHERYL VAN SISE of their .NET framework. It was a very inter- give his slant on the whole Java space. That’s ASSOCIATE EDITORS: JAMIE MATUSOW esting visit and I learned a lot. I’m in the two Jasons we have on the editorial staff…it’s GAIL SCHULTZ throes of writing up my report on the whole an invasion! JEAN CASSIDY shebang and once I have my facts straight, One of the best parts of this job is talking ASSISTANT EDITOR: JENNIFER STILLEY Home I’ll publish them in JDJ. So keep an eye out to you. Over time I have had some wonderful ONLINE EDITOR: LIN GOETZ TECHNICAL EDITOR: BAHADIR KARUV, PH.D. next month for that. conversations with people from all walks of By the time you’ve read this, the World life – people now engaged in the world of WRITERS IN THIS ISSUE Cup will be over and another country will Java, with origins from the strangest of BILL BALOGLU, CARL BARRATT, JASON BELL, JASON BRIGGS, MICHAEL DEASY, be heralded as the greatest football nation places. For example, I had a delightful BEA Systems BILL DETTELBACK, KEN GREENWOOD, JOE MITCHKO, BILLY PALMIERI, for the next four years, until they thrash it exchange with a Bill Reister who took me NORMAN RICHARDS, AJIT SAGAR, ERIC SIMMERMAN, JOSEPH SMITH, out again in 2006 in Germany. Why do I into the world of flying military jets. Another RAZVAN SURDULESCU, LEANDER VAN ROOIJEN, ALAN WILLIAMSON, BLAIR WYMAN draw attention to this you ask? Well, it’s a exchange was with a Razvan Surdulescu who great test of the technology we’re all build- came to us with a great idea for a story that www.bea.com/download SUBSCRIPTIONS: ing. It’s at times like these that you realize we all instantly jumped at. Razvan has writ- FOR SUBSCRIPTIONS AND REQUESTS FOR BULK ORDERS, just how powerful and far reaching the ten an emulator for the ZX Spectrum in Java. PLEASE SEND YOUR LETTERS TO SUBSCRIPTION DEPARTMENT Internet has become. No matter how much His proposal got my vote for many reasons. I SUBSCRIPTION HOTLINE:[email protected] capacity sites prepare themselves for, owe my current life choice to that little Z80- COVER PRICE: $5.99/ISSUE sometimes it’s just not enough. Take the based machine. When I was just 11-years old DOMESTIC: $49.99/YR. (12 ISSUES) BBC Web site. On the first day of the World it whetted my appetite for the world of com- CANADA/MEXICO: $79.99/YR. OVERSEAS: $99.99/YR. Cup they experienced some 8 million hits, puters. (U.S. BANKS OR MONEY ORDERS). BACK ISSUES: $10/EA., INTERNATIONAL $15/EA. three times more than normal traffic. Some How many of you remember program- users complained of being locked out, but ming in those days? It’s funny to look at it EDITORIAL OFFICES: on the whole it coped. now, especially when we look at the power SYS-CON MEDIA 135 CHESTNUT RIDGE RD., MONTVALE, NJ 07645 TELEPHONE: 201 802-3000 FAX:201 782-9600 What I find wonderful about this tale is Java has laid before us. For example, for a JAVA DEVELOPER’S JOURNAL (ISSN#1087-6944) is published monthly that a lot of the BBC site is run with Java long time I couldn’t figure out how programs (12 times a year) for $49.99 by SYS-CON Publications, Inc., 135 Chestnut technology – a great success story about the could ever work without the notion of line Ridge Road, Montvale, NJ 07645. Periodicals postage rates are paid at Montvale, NJ 07645 and additional mailing offices. POSTMASTER: Send address power of Java. A shot across the bow of the numbers! Remember choosing 10, 20, changes to: JAVA DEVELOPER’S JOURNAL, SYS-CON Publications, Inc., anti-Java brigade I say! While this sort of traf- 30…giving yourself enough spacing in case 135 Chestnut Ridge Road, Montvale, NJ 07645. fic peak is something the majority of devel- you had to add in additional statements. opers will never experience, it is nice to know For those of you who are aware of the ©COPYRIGHT: that should such a flood come our way, we’ve Spectrum, check out Razvan’s article this Copyright © 2002 by SYS-CON Publications, Inc. All rights reserved. No part of this publication may be reproduced or transmitted in any form or by any chosen a technology that’s beautifully scala- month; I think you’ll enjoy the trip down means, electronic or mechanical, including photocopy or any information storage and ble. memory lane. For those of you who aren’t retrieval system, without written permission. For promotional reprints, contact reprint coor- • • • familiar with that machine, read it anyway; dinator Carrie Gebert, [email protected]. SYS-CON Publications, Inc., reserves the right to revise, republish and authorize its readers to use the articles submitted for publication. This month we have a new J2SE editor it’s a great piece on emulation. taking over the reins from Keith Brown. I bid Until next month. 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, [email protected] service marks or trademarks of their respective companies. AUTHOR BIO Alan Williamson is editor-in-chief of Java Developer’s Journal. During the day he holds the post of chief technical officer at n-ary (consulting) Ltd, one of the first companies in the UK to specialize in Java at the server side. Rumor has it he welcomes all suggestions and comments. 4 JULY 2002 JULY 2002 5 Java COM Java COM J2EE INDEXX J2EE EDITORIALOR Team Spirit Here’s a short pop quiz: Have you ever built an application in J2ME 7 J2EE and taken it through the entire product life cycle? by Ajit Sagar AJIT SAGAR J2EE EDITOR Certificate Authorization in Your J2EE PKI When a client recently requested secure communi- Team Spirit J2SE cation among multiple plat- form boxes distributed ere’s a short pop quiz: Have you However, the colloquial interpreta- 8 across three continents, I ever built an application in J2EE tion of a J2EE application is one that uses decided to leverage the Hand taken it through the entire the J2EE object model – EJB. Typically, 100% Java-based security product life cycle? Or, for that matter, any EJBs apply to large-scale business appli- available via Java Secure distributed computing application? If the cations, and an EJB-based project Socket Extension. answer is “Yes,” then answer this one: Have requires a mix of skillsets. In fact, the J2EE by Eric Simmerman you handled all the facets of the applica- J2EE application server vendors have tion on your own – as a one-man team? If cornered the market on the J2EE frame- Building Transformational you answered “Yes” to both questions, my works and component containers.