[Reproduced] Review of J2ee Development without EJB

zhaozj2021-02-16  61

[Original] Dion Almaer [Link] http://www.theserverside.com/articles/article.tss?l=j2eewithoutejb_bookreview [简]] Rod Johnson's new work regret. Only one wish now is to hope that the domestic can introduce the photocopy. If you want to translate, you must find a high level of translator, Rod's last one is translated by a group of people who don't understand. [Original]

Introduction

I was excited to see J2EE Development without EJB come across my desk at work. This is the new book by Rod Johnson and Juergen Hoeller, both known well partly for being the lead developers of the Spring Framework.

Rod's first book was J2EE Design and Development, also in the "Expert one-on-one" series from Wrox (now owned by Wiley). The first book took a bold step. Rod discussed his real world experience with J2EE, and offered up Some Advice, Some Patterns, and Some Good Thoughts on Architecture and development in Our world. this book takes what to the next level.

IT is very important to mention what this book is not.

IT isn't About Bashing EJBS, and Anyone Who Uses Them IT ISN't About Patting The Spring Framework On The Back, and Suggesting That You Have To Use IT, or That It Is The Only Good Solution To your problems

This is very important. It would be very easy to make the book a rant on EJB, and to make the rest of it be Spring 101. Thankfully, this is far from the tack of this book. The book actually offers different information for different Purposes. I Would Say The Book Has Three Sections That Could Have Been THEIR OWN BOOK EVEN :)

Architecture: There is a thorough high level view of architecture in the enterprise Java arena We learn from history, from real projects, and look to the current trends The lightweight container movement:.. Here we look into what the movement is about, what it is helping us solve, how AOP fits in, and finally about the Spring Framework itself The sample application:. At the end we get to discuss a case study (unfortunately the PetStore: /) and are walked through various decisions that were made.Let's Walk Through Thase Sections and See What Have to Offer:

Part ONE: Architecture

Why "J2EE WITHOUT EJB" Goals Architectures J2EE Architectures in Practice THE SIMPLICITY DIVIDEND EJB, FIVE YEARS ON

Part Two: Lightweight Containers and Spring

Lightweight contains and Inversion of Control Introducing the Spring Framework Declarative middleware using AOP concepts Transaction management Persistence Remoting Replacing other EJB services Web tier design Unit testing and testability Performance and scalability

Part three: Sample App

Part ONE: Architecture

I Feel That I have to stress again That this book is not about, nor a huge plug for spring. If you never use the Spring...................

One of the reasons I like Spring is the pragmatic, practical approach. It gives you the developer tools to get your work done. The book is written in a similar way. You can tell all the way through that that authors have really thought about what They is Talking About, And Come with Much Experience.

The first few chapters are the type that you will read with a smile on your face. You will nod too yourself, and most of it will make perfect sense to you. You have been there. You have seen the problems that are discussed.Every effort has been made to not specifically get into Spring at this point. It is very politically correct, in fact almost too much so. You will see "Hibernate, or JDO" a lot in the text. Maybe we should create a new acronym H / JDO Which Means The Same Thing. I think The Did A Great Job in NOT Favouring a Particular Project (Although Of Course Spring is Gone Into Detail).

If someone in management jumps to the conclusion of "Use EJB" you can have them read these first chapters. It is not a pure rant on EJB, but discusses the issues at hand, and how EJB is not necessarily the best choice for Every Solution. However, They do talk about how to ejb can be a good solution, in a.

A Good Read, My Only Complaint Is That It Gets a Little Long in Some Places.

Part Two: Lightweight Containers and Spring

There is a lot of meat to the chapters in the middle of the book. We are systematically walked through the tiers, and subsystems that we often require. Again, they spend time discussing the system in question in the abstract before rushing into the Spring- Way.

For example, if you open up the web tier chapter, you will be shown the parts and pieces of that tier, and the various types of solutions to the problem. You will get the authors opinions of Struts, WebWork, Tapestry, and JavaServer Faces Before get to Spring MVC. It gives you a good at the style is mimicked throughout the Other Chapter.

I really enjoy how practical these chapters are. Read the chapter on AOP and you will not only understand a little about AOP in general, but you will understand where Spring stands, and how to USE IT in your applications. A lot of knowledge is passed on here.I also would be willing to wager that the Remoting chapter will offer some new insight. We have more choices in our tool belt that just the classic remoting of RMI / EJB, and the heavyweight WSDL based services. There is a good discussion On The Lightweight Remoting of Hessian and Burlap (from caucho). A Very Interesting Read Indeed!

Near the end of this section we get into a few different chapters. We get a take on unit testing and Test Driven Development. The Spring Framework itself eats this dog food, and we are shown how it all works. We also get a glimpse at Some Tools for Code Coverage and Such.

Many books pass the buck when it comes to tasks which we all need to do. My most common peeve is that there is not anything out there on handling complicated enterprise build systems. Performance and scalability is another item that is often overlooked, or skimmed . This book discusses both the architectural choices, as well as implementation ones. It also promotes an evidence-based approach to performance, and shows us a few tools. This all leads us to the sample application ...

Part Three: Sample Application

This area is both interesting, yet probably the weakest part of the book, in my opinion. There is a lot of good information here on the PetStore application, and the Spring version. I really like how they made some of their decisions not based on "What is the theoretically best thing to do here", But Rather "what makes sense for us".

For example, since they adapted the iBATIS version, they did not bother re-architecting the areas that were working fine. This meant that they ended up with iBATIS SQL MAPS for persistence, rather than a Hibernate.I am probably more sick of the PetStore Than Most;) SO Would Have Liked Another Case Study Too. However, The Book Is Already Plenty Long, And They Had to Stop Somewhere!

Conclusion

If you are working with enterprise Java you should read this book. It is as simple as that. This is not just about Spring, it is about the problems we currently face daily in our projects. The book is written by one of us, Fors US. It is real refreshing to becomle to sign what authors area ... People Who Sit On Committees and Plan the Future.

Although the book goes into good detail on Spring itself, do not look for it to be Spring: Every API that you can ever use There is definitely room for other books such as Spring Live If you have not played with Spring much.! YET, this Book Will Probably has you downloading it and giving it another look.

转载请注明原文地址:https://www.9cbs.com/read-17337.html

New Post(0)