Free Programming Books
Free download ebooks on computer and programming | |||
Free Java Ebook "Beginning J2EE 1.4: From Novice to Professional" Sample Chapter
Beginning J2EE 1.4
Download chapter
Download free chapter 8: EJB Fundamentals The Java 2 Enterprise Edition (J2EE) is an extremely powerful platform for developing enterprise-level Java-based applications, primarily for the server. This book shows you how to harness that power, guiding you through the details of how the pieces of the J2EE platform fit together. This book goes further than just showing you how to code a JSP or an EJB: It explains when and where to use these APIs, what their strengths and weaknesses are, and perhaps most important, how to employ the best practices for using them. Specific topics covered include:
Why Use EJBs?Not too long ago, when system developers wanted to create an enterprise application, they would often start by "rolling their own" (or purchasing a proprietary) application server to support the functionality of the application logic layer. Some of the features of an application server include:
There are also some very good open-source entries in this market such as JBoss and JOnAS. As you know, Sun provides a freeware Reference Implementation (J2EE SDK) of the J2EE 1.4 and EJB 2.1 specifications that may be used to develop as well as to test an application for compliance with those specifications. The Reference Implementation may not, however, be used to deploy production systems. The Sun Reference Implementation was used to develop all of the examples and exercises contained in this book. These application servers, in conjunction with the capabilities defined in the EJB specification, support all of the features listed above and many more. Since they all support the EJB specification, we can develop full-featured enterprise applications and still avoid application server, operating system, and hardware platform vendor lock-in. Yes, things sure have improved! We now have a standard, specifications-based way to develop and deploy enterprise-class systems. We are approaching the Java dream of developing an application that can run on any vendor platform as-is. This is in contrast to the vendor-specific way we used to develop where each server had its own way of doing things, and where the developer was locked into the chosen platform once the first line of code was written! For more information on the EJB specification, see the http://java.sun.com/products/ejb/docs.html web site. | |||