The classics of the cultivation of the Java EE [from 2004 programmers]

Source: Internet
Author: User

The classics of the cultivation of the Java

Peng Yang


There is no classics, because the Java EE has been like the surging of the river, the new, continuous high-speed development, which is to lead us to the future of technology. Of course, how to be in this kind of momentum such as the trend of the rainbow is not lost direction, need to guide the guidance of books. This article will recommend the Java EE books from two aspects of threading and pattern, these two aspects are two different directions, the thread is from the microscopic, the underlying mechanism, and the pattern is to look at the Java EE from the design height.

Threads (thread)

First, Threading is a basic knowledge that many Java EE beginners are apt to overlook, and it can be said that the thread is a must-have path, no matter which door in the world you are entering into EE. I don't remember where I saw the following paragraph in English: j2ee servlet and EJB Make sure we don't have to worry about threading and syncing. We only have to program as usual, and the container will automatically use technology like thread pool to support our application. > There's a lot of authority in thread computing, and Dou Lee is undoubtedly an outstanding representative of that, His parallel computing package has been added to the latest version of JDK1.5, and his books are of a groundbreaking nature, but such books may not be ideal for a beginner who just wants to learn about threads.

Java threading Programming (Java thread programming)

I recommend the first book about the Java EE book, in this book, the author in a simple example, the image from single-threaded to multi-threading, thread pool (thread pool), concurrent access to objects and variables (Concurrent access to Objects and Variables), these are some of the things we often wonder about in servlet/jsp programming, and in the case of this book, the author clearly shows us these details and has important techniques. At the same time, we also deeply understand the direct development of multi-threaded applications is a "scary" thing. Interestingly, I also found a post in the community of an online bookstore that I had the same opinion, saying the book was "a book that made classics the past."

Design Patterns

The thread world is like the microbial world, complex and almost no boundaries, as an information system programmer if too attached to the micro-level of pure technology, may waste too much valuable time and energy, in the basic grasp of multithreading mechanism, need to pay more attention to the design of the Java EE application. EE is a unique framework or standard in the Java world, so we first need to master Java-based design applications, these design and application skills, is the forerunner through long-term practice summed up the experience, they call design patterns. In the Java EE application, only a large number of use of design patterns, can reflect the separation and decoupling of the highest purpose, in order to make their own Java EE system is clear, hierarchical, such a system really has good scalability, strong robustness and convenient maintainability.

GoF 23 Design Patterns have become a classic, 2002 I on my website J Road published 23 Design Patterns Java detailed, unexpectedly in the Chinese Google, it is difficult to find this information, I am extremely surprised, perhaps the people are really very real, only for the algorithm, data structure and so on See, Touch the concept of interest, in fact, I have been repeatedly and others: design pattern is not purely abstract concept, it is a summary of practice, like UML, is a communication and coding implementation of the language.

In 2002 years, I helped a friend buy the Chinese version of Gof 23 design Patterns: "Design mode: The basis of reusable object-oriented software", it is the 2nd time in December 2000 to print the version, so the classic must read books, 8,000 volumes in 2 years have not been sold, compared to those noisy hype books, In the publication of a few months to sell million, more and more of our society's impetuous and quick success.

of course, although the thin book by four people to assist the translation, presumably they also Satan thought exhausted, do their best, unfortunately there are many translation defects in the book, affecting its sales. because this classic GOF design mode is more difficult to understand, beginners should be more from the case application to understand and master the GOF design patterns, related to provide examples of the application of books have the following:Mark Grand's patterns in the Java series; " Java and pattern" of Chinese-American Shanhong , the author's "Java Practical system Development Guide";

Ejb

EJB is an important part of the Java EE, it is recommended to put your business function core in the EJB implementation, EJB similar to the "family bucket" of Ken, the actual needs of the basic functions are all packaged together, if you are a picky or personalized customer, I think you may not only satisfied with the "family bucket."

Whether the "family bucket" is right for you, it is a necessary process to understand what it contains. Mastering EJBS requires two things: fundamentals and how to use them.

  "Proficient in EJB (second edition)"

is a more thorough explanation of the EJB principle, but the book will be some of the fundamental principles of EJB to CORBA, and the CORBA is not carefully introduced, I think beginners should be here enough, if you are very interested in EJB bottom implementation, I recommend reading JBoss source code, In fact, JBoss source code in your tireless study of the strength of the attack will soon fall apart.

The object pool, RMI, and transaction mechanism should be the EJB principle Master Three directions, these three kinds of technical direction can recommend many books for study research, here does not say.

EJB mainly sub-EJB container and EJB application system, beginners more attention should be focused on how to build EJB application system, because the EJB provides powerful and very characteristic, therefore, use them to be very careful, follow certain premise and rule, thus, EJB design pattern cannot be understood.

  The EJB design pattern(http://www.huachu.com.cn/itbook/itbookinfo.asp?lbbh=BB99699392) is a classic in this regard, and in the book, the author points out the characteristics of using CMP attention , the importance of DAO patterns, variations in dto patterns, and so on. Read this book at the same time, if the reference Sun Petstore source Learning, will play a multiplier effect,

After reading the two books above, it is very important to do your own hands-on practice, the EJB Reference configuration is cumbersome, the principle is this: the caller----> EJB Reference---> The jndi name of the invoked EJB----> called EJB , these details of the use of problems can only be encountered in practice, but also from the Internet to find some examples of electronic tutorials in this area.

Only when you have debugged one or two EJB instances can you stand up and express your thoughts: like or dislike? Architecture selection can also provide reference advice: is the light weight or weight type? It is not advisable to blindly repel ejbs or to think that EJBs are the only solution, such as two extremes, and all roads lead to Rome, and scaling and performance are key.

Here is a book that looks at EJB/J2EE from a purely design perspective: Rod Johnson's "Java EE Design and Development Programming Guide", English is an expert one-on-one, the EE and Development,rod Johnson points out the EJB drawbacks in the book from a perfect design point of view, which is very eye-catching and, at the same time, it is an understatement to use the extra workload of using EJBS without the use of a normal small font. Of course, Rod Johnson has presided over the development of the spring framework in order to implement its ideal design as a code, and if the EE domain has a perfect design requirement and can support mature applications as well as industry standards, it is a very desirable thing, The spring framework has done a useful exploration at least in this regard.

Clustering, Web services, and resource consolidation

For medium and large software systems, clustering and Web services are necessary techniques, and there are not many books related to it. How to integrate the new technology of the Java EE and the existing resources, also belongs to an exploratory field, expecting some good books in these aspects.

The classics of the cultivation of the Java EE [from 2004 programmers]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.