Before you begin to discuss the need to have J2ME, J2SE, J2EE these concepts. J2SE, The Micro Edition of the Java 2 Platform. Mainly used in embedded Java, such as mobile phone, PDA and so on. J2SE, Java 2 Platform, Standard Edition, we are usually talking about JDK (Java Development Kit) included in this, are the basis of J2EE. J2EE, Java 2 Platform, Enterprise Edition, is the so-called enterprise-class Java. These are just a level up from the API division of Sun in fact give the definition of J2EE are: the development of multi-tier component-based applications, enterprise-class norms. That is, for a variety of different techniques to define a Java specifications, so that they combine different technologies in the Java platform to build a strong enterprise-class applications. From this point of view, J2EE should be covered by the concept of J2ME, J2SE's. Such as a typical J2EE application, online stores, the way it supports the web under the Order, also supported under the Mobile Phone Order. Obviously must be used in J2SE, J2ME. So does not exist the so-called J2EE from J2SE shift the problem, but the latter contained only a wider range.
Take a look at Sun's J2EE related technologies give mainly divided into several large pieces.
1. Web Service technology
- Java API for XML Processing (JAXP)
- Java API for XML Registries (JAXR)
- Java API for XML-based RPC (JAX-RPC)
- SOAP with Attachments API for Java (SAAJ)
2. Component Model technology (Component Model Technologies)
- Java Servlet
- JavaServer Pages
- JavaServer Faces
- Enterprise JavaBeans
- Java Message Service
- J2EE Connector Architecture
3. Management Technology (Management Technologies)
- J2EE Deployment Specification
- J2EE Management Specification
- J2EE Client Provisioning
- Java Authorization Contract for Containers
4. Other related technologies (Other J2EE Technologies)
- JDBC
- Java Data Objects (JDO)
- CORBA (Java IDL and Java RMI-IIOP)
- JavaMail
- Transactions
So much so that the technology will inevitably confuse beginners is scared off. Even an experienced J2EE developer, and some people say that J2EE related technologies I have a master. But as a general J2EE application developers, we need to focus on only one of the study can be a part of technology, for a pretty good idea as long as the other parts, a day needed to know where to go to find information on it. In my opinion, these technologies are the following general J2EE application developers must be familiar of. Java Server Page, Java Servlet, Enterprise JavaBean, JDBC, Transactions. Have JAXP and other XML related technologies, Java Message Service, Java Mail, JDO is the best and so on should be available. Other Management Technologies, Connector Architecture and so on are the main providers to the container reference middleware providers, application developers do not need to care about how, and also used in the study no later than then.
Language Learning articles
The first is basic J2SE. A study of new technologies, the practice of reading and无外乎. And a good reference book for beginners especially important. Now the market can be said of Java books are overwhelming, the quality is good and the bad, so at a loss for beginners. or so before you recommend a few books. current knowledge of basic Java, we are generally recommend 2 books, <<Thinking In Java>> and <<Core Java (TM) 2, Volume I? Fundamentals >>. the first book that many do not, Bruce Eckel's masterpiece, Jolt award-winning books. the content of a more comprehensive, covering all aspects of java language. This book provides a rich example, is very conducive to learning content understanding. In addition the book for the first part of the basic books introduce OO, I think for people who刚接触OO will be a great help. but this book is Open Source and can be downloaded from the author http://www.mindview .net / Books / TIJ / used to read for the English version of the learner, the Hou Jie, the Chinese version of Translate is a good choice. to say that this possible disadvantage is that for beginners a bit thick, this Some people also do not recommend this book as a book for beginners to learn the reasons for it. behind a <<Core Java(TM) 2, Volume I?Fundamentals>>, is already the seventh edition, the single from its published the number of view can be seen the popularity of the book, this book is also about the characteristics of a more comprehensive system, basically all the way down, then eating basic Java language should be considered through. disadvantage is thick, and a bit like a reference manual, in front of part, devoted much time to talk about Swing and Applet, probably not very useful for beginners. as have a number of <<Java in a nutshell>> is also a good basic book.
Learn the basic foundation of language, do not forget the most important and most useful information or documents JDK. Learn from your first day of java start JDK documentation should be a standing-on-hand. If you think the first problem encountered is the question up to the Forum Search Jdk rather than documents, do not continue down the first study, and learn to search before JDK documentation. would not be an exaggeration to say that beginners in our forums 60% of the questions are JDK-ray check of documents will be able to solve the problem. the latest JDK Documentation Download http://java.sun.com/j2se/1.4.2/download.html (the latest version of the current are J2SE5 http://java.sun.com/j2se/1.5.0/download.jsp) can not not practice the same download page to download the JDK back. there is one point after the installation I would like to mention, the installation path has a src.zip (some version of jdk are src.jar), ah good things --- JDK source code always ask someone on the forum where there is JDK source code download, you said something on there you also find a home. With this, some questions on the forum on the need to fight with others to go fight, and open source code and see what questions are gone. some of the most important command-line tools are
javac: compile source files to class files
java: running class
jar: package tools.
Javadoc: a tool to generate java doc.
For people who are learning java, I do not recommend using the IDE directly with a text editor, and then run the command-line compiler. This will help understand the CLASSPATH, PATH these basic concepts. CLASSPATH are relatively easy for beginners feel confusing place. Now the IDE is too smart, and give a first name gives you automatically generated java source code, the compiler automatically. probably run you over your first Hello World program, do not know java and javac are used to what to do. As for the actual project development, a suitable IDE or very important to us later on to do some java development tools introduction.
J2EE Advanced Java-based and
End of basic language study can be more natural to turn to the actual J2EE technology the study. J2EE is relatively complex, and EJB, Servlet, these are the core technology as a J2EE developer required by the master. About servlet, I am more Recommend <<Core Servlet and JSP 2Edition>> and <<More Servlets and Java Server Pages>>, the first is the Sun's Servlet recommend materials. Amazon was the second best-selling Java books, five-star book. This book Machinery Industry Press has called English version <<Servlet与JSP权威指南>>, can also be a feeling of Translation, second edition has yet to see if there is English version. 2 books are a comprehensive and systematic introduction to JSP and Sevlet knowledge, from the web server configuration, JSP, Servlet basic programming, Tag Library (Tag Lib), filters, case has a very good description of the framework. to provide to more practical examples. for EJB study to compare 2 books there is a well-known, " <Enterprise JavaBeans, 3nd Edition>> and <<Mastering Enterprise Java Beans Third Edition>>, the co-authors Richard Monson, Ed Roman are the industry heavyweights. Richard Monson the EJB specification is itself a member of the expert group. For me to Say, the two hard to distinguish the merits of this book, the second has an advantage in this book can be downloaded for free is http://www.theserverside.com/books/wiley/masteringEJB/index.tss.
Or sentence, should not that do not deliver, but make up J2EE practice has a little trouble, the application server is essential, the best have to prepare a lightweight database. Following is a brief introduction of these tools.
web server (Servlet Container) there.
Tomcat. Http://jakarta.apache.org/tomcat/
Jetty: http://jetty.mortbay.org/jetty/
Application server has used,
Jboss: http://www.jboss.org/products/index
Weblogic: http://www.bea.com/framework.jsp?CNT=index.htm&FP=/content/products/server
WebSphere: http://www-128.ibm.com/developerworks/downloads/ws/was/?S_TACT=105AGX28&S_CMP=DLMAIN.
Tomcat, Jetty, Jboss are Open Source. Weblogic and WebSphere is a J2EE server class leader in the figures, prices are also expensive. But there is free of charge for developers to download the trial version.
If you only study alone Servlet, recommend the use of Tomcat, which is designated by Sun official Servlet, JSP reference implementation norms for beginners .. above all it is relatively simple to use, comes with relatively complete documentation, many users do you have any question easy to get help at the forum above. Learn EJB If so, recommend the use of Jboss, not only because it is Open Source, and the main configurations are relatively simple and easy to use. For example, to connect to database, commonly used for MySQL, Oracle, MS SQL and so on have provided Sample Config file directly to make small changes took into Deploy directory can be used on the DataSource, and the deployment of J2EE applications easy, the whole. ear or. war under deploy into it. The only non - place convenient to start from Jboss3.0, it charges the beginning of the document. But for some of the basic configuration, the Internet is still very easy to find, after all, it was too popular. As for Weblogic, relatively easy to use, but compared to Jboss to a lot of big heads, through the powerful management interface allows the configuration of some commonly used job very easy. and Jboss documentation than on it too much, it is a bit winded Rory eight, such as the deployment of a want. ear files generally is directly into our domain directory under the applications will automatically deploy, but it depends on length of the document, however, easily frightened beginners, what is it that this profound science. As for WebSphere, individuals do not recommend beginners to use, compared to two months before the Server is more difficult to make, but狂吃memory. However, in enterprise-class market performed pretty well this guy, after all, are born in such a wealthy IBM.
Database, at present there is common PostgreSQL, MySQL, Oracle, MS SQL, DB2 and so on. The first two are open-source database, some are basically a monopoly on the back of most of the database market. For beginners used to doing EJB, JDBC practice, I recommend MySQL, reason is very simple, open-source software not to money, the use of small size, many users complete document. download address http://www.mysql.com/products/mysql/. PostgreSQL is also can be considered, but far less internal MySQL user, and so to ask questions at the forum to some of the less convenient, download address http://www.pervasive-postgres.com/downloads/. As for those behind the relatively heavyweight The database, in order to practice in terms of doing would not have taken into account, God also can not afford this money.
End J2EE study of these specific technologies, this time a basic J2EE development should pose no problem. At this time should be given to raising the quality of their code. Here, I strongly recommend Martin Fowler's <<Refactoring: Improving the Design of Existing Code> >, this book is not a very practical book, the author is entirely hand and teach you how to improve code quality, code specific to tell you what codes are Bad Smell, how to remove these Bad Smell. a lot of book reviews are so to say, this book for the beginner, intermediate assist readers are immediate. at least on some of my contacts to study the near programmers programming, coding quality in the near future have greatly improved. of course, re - conformation (Refactoring) the concept of not only the Java language, it is applicable to all the OO language. reconfiguration of the concept is so popular that today almost all are popular IDE tool support for the reconstruction. Here I would like to recommend a <<Effective Java>>. come from the C + + programmers are aware of <<Effective C++>> in C + + the status of the field has also been a趣话such, C + + programmers is divided into two species, one is read <<Effective C++>> and the other is not read C + +. Although this <<Effective Java>> in the Java area of the impact may be less, but Java programmers absolute guidance there is a considerable value. The author is Sun's Joshua Bloch, java Collection framework of the Designer. Author Designer stand in the perspective of JDK you introduce him to the Best Practice, should do so rather than do so, for in a JDK API design flaw of some He also pointed out that without the shielding. Java father James Gosling language to write the foreword for this purpose are such that "I sure wish I had had this book ten years ago. Some might think that I don't need any Java books, but I need this one ". This book will give you the original feel of Java you have a lot of things still do not understand. For example, the equals method of the object, we think it is very simple, you may be every at you every day for new heavy-duty of the Writing of Class, but at heavy load when you pay attention to the "reflexive", "symmetric", "transfer" of these factors must be taken into account, do you also care of the re - This method contains the hashcode? If not, suggest you to read this book. After reading this book you will find the distance from the Java closer. above the 2 books have been the Chinese version of the back of a << Effective Java>> have two versions of the English version of the first comparison Translation nearly later Machinery Industry Publishing House Mr. Pan Aimin commissioned to re-translated it. the same publishing house in the same book has been translated for the two also shows that the domestic publishing industry this book is quite seriously.
This stage, read books at the same time, you can combine some of the excellent study of the source code open-source projects. These open source project code style, drawing on are worthy of note.太懒is also on hand do not forget to have a Jdk source code. In fact, do not deliberately look for the source code, in the actual development of J2EE projects, will be used is basically a number of excellent open source project. Framework may be used in Spring, Struts, Log mechanism will basically JarkartaCommons Log or Log4j, unit testing will mostly be used Junit, read in connection with item one of a number of source code, can also enhance their own project will be helpful, might therefore be appreciated by the then PM. do both better than it. Oh, a little pull away. After a beginner stage, learn how to find the suitable Java books of their own. After several decades, today's Java technology has become so complex, I believe that even if a poor person a lifetime net of energy and can not put all the relevant Java technologies Qualcomm learn, not to mention the endless stream of new technologies is also launched, who would know that 3 years ago will become a Web framework for Struts in fact the industry standard. 2 years ago in Who knows Hibernate dominate today. Now that has been put java should not expect a one-time technical study of all aspects of Qualcomm, in practice only what skills are required to learn technology. and the ability to select a good reference book is brought about by work effort and do a half times the results. so I think take the time to select books on the top is still very worth it, otherwise you will spend more behind time. the following books of their choice to talk about my experiences, not necessarily right. First of all, the author look like those mentioned above, the author, are the industry's鼎鼎大名, select the book they can not mistake ordinary. watch the U.S. many of the book, their hearts will naturally have a list, which the authors are trustworthy. watch two publishers, computer books, Oreilly, Addison-Wesley Publishing are better recognized. compared to the current popular Java technology, Oreilly's <<XXXX in Action>> series is a good choice. In addition I will go look at the Amazon site (http://www.amazon.com/) of book review, generally less than 3 stars in my book will not be considered. There is also a good place theserverside, http://www. theserverside.com /'s book reviews, book reviews more interesting here, often have a very heated debate, which will always see some celebrities in his speech. I would like to recommend all Java learners, if my favorite store which only two a website, I would choose java.sun and theserverside. Here you can learn about the latest developments in Java, the Java can learn first-hand information, we can see that you have Java (which many industry players) intense debate.
This phase, Java Developer's basic foundation should be considered a bar fight, the future is to continue to study myself. Before the end of this period, and finally re-introduction of an Oreilly book <<Java Threads, Second Edition>>, because I think many Programming Java threads belong to the basic skills, each of the people want to learn Java should take advantage of.
Part improve
At this stage should be from the software architecture, Framework level up the study. The Bible, as object-oriented <<Design Patterns>>, have to this book are recommended. Say no more, and that this status in the field of object-oriented entirely belong to the godfather of the level. No matter what you study OO language, whether you are using now. Net or J2EE development, this book you are reading on the path of the Advanced Book. and <<Core J2EE Patterns> > is specific to the J2EE design patterns to discuss the book of the Sun Java Center senior designer describes the key technologies of J2EE patterns. best practices, design strategies and proven solutions. For each one, or want to be J2EE Architect designers, this book worth reading. the study design, the proposal is to combine the actual source code view, look at such as Junit source code, you can see a lot of elegant design patterns implementation, one of the authors themselves Erich Gamma is <<Design Patterns>> author. As for J2EE design patterns, Sun has opened up a space dedicated http://java.sun.com/blueprints/patterns/, there are discussions on the common model provided a detailed Sample source code. As Grady Booch said, the model provides a problem for the general common solution, the use of models is equivalent to have a strong team of experts. Learn if you have not, let's get started. In addition to object-oriented methodology , the limit should also be programmed to understand the idea http://www.extremeprogramming.org/. for the specific implementation of J2EE projects, Rod Johnson's <<Expert One-on-One J2EE Design and Development (Programmer to Programmer)> > is also a valuable book to the author's rich experience to demonstrate how to use our solution as simple as possible to build J2EE applications, the book the author first put forward this opinion, a lot of time, J2EE application is absolutely no need to use EJB For the majority of the言必称EJB for J2EE developers, how to say a little taste of popular cough惊世. Of course, both as a Servlet and the JDO expert group members, this is not the author of the letter I Hu Zou. popular today Spring Framework Java world is derived from the original book, and the IOC, AOP, such as the concept is now being attributed to the java developer. Finally, as a Java-depth study, Java technology is also necessary for the various Specification 1 read . have so far wrote here.







