Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

Sams Teach Yourself J2EE in 21 Days
  • Alternative view 1 of Sams Teach Yourself J2EE in 21 Days
  • Alternative view 2 of Sams Teach Yourself J2EE in 21 Days

Sams Teach Yourself J2EE in 21 Days

by Martin Bond, Debbie Law, Andy Longshaw, Dan Haywood, Peter Roxburgh

See All Formats & Editions

J2EE has become required knowledge for any serious Java developer, but learning this large and complex specification requires a substantial investment of time and energy. Sams Teach Yourself J2EE in 21 Days, 2/E presents the enterprise Java architecture in accessible, easy-to-comprehend lessons, describing how each J2EE tool solves the challenges of n-Tier


J2EE has become required knowledge for any serious Java developer, but learning this large and complex specification requires a substantial investment of time and energy. Sams Teach Yourself J2EE in 21 Days, 2/E presents the enterprise Java architecture in accessible, easy-to-comprehend lessons, describing how each J2EE tool solves the challenges of n-Tier development. Using the architecture as a roadmap, chapters describe Enterprise JavaBeans (EJB), JavaServer Pages (JSP), Java Servlets, and more, giving readers a full understanding of J2EE development.

Further chapters cover the role of XML, custom JSP tags, creating J2EE Web Services, and how Java Connectors allow J2EE applications to interact with legacy and non-Java systems. The book finishes with sample applications which put all the pieces together, including an example using J2EE to create Web Services. Along the way, every concept is illustrated with practical, real-world examples to ensure understanding by Java students as well as experts.

Editorial Reviews

The Barnes & Noble Review
J2EE is already a huge platform, and with the addition of the JAX Pack for developing XML-based web services, it’s getting huger. Even if you’re an experienced Java developer, it can be difficult to figure out where to grab onto J2EE, and how to bootstrap yourself to mastery. That’s where Sams Teach Yourself J2EE in 21 Days comes in.

Martin Bond and his team of experienced enterprise Java developers have organized the entire J2EE platform into 21 lessons, each incrementally building on what’s come before. Collectively, these lessons introduce virtually every important component of J2EE. The book is intelligently written and contains plenty of sample code. Best of all, it’s full of tips and notes that illuminate what you really need to know to be effective.

Bond and company begin with a brief review of how we got here -- to n-tier, component-based, web-oriented development, that is. They outline what modern distributed computing environments like J2EE need to deliver (component lifecycle management; persistence; naming; transaction support; security, and so forth). Next, in Lesson #2, they take a first pass at showing how J2EE delivers all that. They introduce key platform elements such as Enterprise JavaBeans, JavaServer Pages, servlets, and containers; then outline the services provided by J2EE containers (for instance, JDBC for database connectivity).

You’ll walk through installing your J2EE environment, configuring it, starting the J2EE reference implementation, and troubleshooting start-up if it gives you trouble. (Yo, Sun: It’s the 21st century -- should developers still have to manually define environment variables and fuss with paths just to get your JDK installed?)

Then, with introductions out of the way, Sams Teach Yourself J2EE in 21 Days introduces the case study that will be used throughout much of the rest of the book: a job placement agency which serves both employers and applicants. By the end of the course, you’ll have a simple, working enterprise application with both a GUI-based front end and a web-based interface -- not to mention a realistic understanding of J2EE’s strengths, weaknesses, and best practices.

Lesson by lesson, you’ll master Java Naming and Directory Services (JNDI); session and entity beans; container managed persistence (CMP) and the EJB Query Language (you’ll have a great headstart if you’ve ever worked with SQL). Next, the authors move on to more complex techniques. There are thorough lessons on transactions and persistence; example-rich introductions to JMS and message-driven beans; and a good look at email-enabling your enterprise applications with JavaMail.

Beginning with the email coverage, the book moves aggressively towards Web development, introducing servlets and JavaServer Pages, and then showing you how to use tag libraries, which allow you to embed business logic in custom tags that others can integrate with their presentation logic and visual page designs.

Most of the book’s six remaining lessons focus on XML and Web services development: integrating XML with J2EE; parsing XML and transforming XML documents; building RPC-based (and to a lesser degree SOAP-based) web services; using web services registries; and more.

Most, that is, but not all. We’d be derelict if we didn’t mention the book’s excellent introduction to patterns, and to some of the most useful patterns that have been identified for J2EE development.

The book contains some very nice touches. For instance, to make sense of the class relationships, object interactions, and events at work in a J2EE system, it helps to use UML diagrams, and this book does. But the authors recognize that not all new J2EE enterprise developers are familiar with UML, so they present a concise introduction as an appendix. Similarly, there are quick introduction/mini-reference sections on SQL for those building database applications, and XML for those building web services.

We also liked the authors’ focus on refactoring: their readiness to present a basic solution, then rework it to reflect more complex techniques and more advanced J2EE skills as you master them. For example, you’ll use session beans to register job applicants; then add entity beans for applicant data and refactor your session beans accordingly; then refactor your new entity beans to leverage container managed persistence; later in the book, you’ll create web interfaces to the same session beans.

While this book has several authors, it speaks with a single voice: the voice of intelligence and experience. (Bill Camarda)

Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks For Dummies®, Second Edition.

Product Details

Publication date:
Sams Teach Yourself Series
Product dimensions:
7.32(w) x 10.96(h) x 1.18(d)

Meet the Author

The authors of this book work for Content Master Ltd., a technical authoring company in the United Kingdom specializing in the production of training and educational materials. For more information on Content Master, please see its Web site at http://www.contentmaster.com.

Martin Bond, B.Sc. M.Sc. C.Eng, M.B.C.S., was born in Blackburn, England and went to University at Aberystwyth, Wales to study Pure Maths and Physics. Discovering Computer Science and programming was a lot easier than mathematics, Martin switched to a Computer Science degree. After graduating Martin did research into large scale software systems until the thought of earning money lured him into the commercial world. Martin was soon managing an R&D team developing parallel processing compilers for the occam language, but preferred to retain his hands-on technical skills and moved in open systems software design and consultancy. Since 1995 Martin has worked primarily as an independent trainer, course writer and technical author specializing in Unix, C, C++, Java and software design. Martin has written training courses on Unix, XML, Java and Solaris Security and co-authored Tomcat Kick Start (Sams Publishing, 2002). Martin currently lives on a smallholding in Cornwall, England.

Dan Haywood has been working on large and small software development projects for more than 12 years. These days, he fills his days with consulting, training and technical writing, specializing in OO design, Java and J2EE, Sybase technical consulting, and data modeling. Previously, Dan worked at Sybase Professional Services, performing a variety of roles, mostly in the financial industry, including architect, performance specialist, and project manager. Dan started his IT career at (what was then) Andersen Consulting, working as a developer on large-scale projects in government and in utilities. Dan is married and has a baby daughter.

Debbie Law B.Sc., was born in Romsey, England in 1959. Debbie started on compiler development for parallel processing systems, later working on the design and development of client server applications. Debbie now pays the bills writing technical books and training material as well as doing consultancy work for UK clients. Debbie has an honors degree in computer science from Southampton, England and currently works as an IT consultant based in Cornwall, England.

Andy Longshaw is a consultant, writer, and educator specializing in enterprise platforms, Web-based systems and Web services, particularly the design and architecture decisions required to use these technologies successfully. Andy has been explaining technology for most of the last decade as a consultant, mentor, trainer and conference speaker. A wild rumor suggests that some people have managed to stay awake in these sessions. Despite being well educated and otherwise fairly normal, Andy still subjects himself and his family to "trial by unpredictability" by watching Manchester City FC far more often than is healthy.

Peter Roxburgh graduated with a first class degree with honors in business, and has since followed a diverse career path. From his home in the medieval walled town of Conwy, North Wales, he authors a wide-variety of training courses, and books including Building .NET Applications for Mobile Devices (Microsoft Press, 2002). He has also written and contributed to a number of journals and Web sites on cutting-edge technologies.

Peter spends his spare time playing the guitar and bouldering on nearby sea cliffs and mountain crags. When he is not strumming or risking life and limb, he enjoys spending relaxing and quality time with his daughter, Chloe.

Customer Reviews

Average Review:

Post to your social network


Most Helpful Customer Reviews

See all customer reviews