Java life: J2ee Learning Process

Source: Internet
Author: User
Tags jboss application server

Here I will talk about the j2ee process and the experiences and lessons learned in this process. In this way, the latecomers will be less likely to take detours.
Java has developed into three main parts by application: J2SE, j2-and J2EE. These three modules complement each other and have different application scopes.

J2SE is the standard version of Java2 and is mainly used for programming desktop applications;
Mainly used for embedded system development, such as mobile phone and PDA programming;
J2EE is the Enterprise Edition of Java2. It is mainly used for the development of distributed network programs, such as e-commerce websites and ERP systems.

Learn j2se first
To learn j2ee, you must first learn j2se. At the beginning, you are advised not to use IDE, and then gradually transition to using IDE for development. After all, it is convenient to use it. Two books are recommended for learning j2se, java2 Core Technology 1-2, java programming ideas, and java mode. Among them, "java programming ideas" should be studied and intensively read. This period of time is basic learning, and it may take a long time or a short time, depending on the level of the learner.

Do not be entangled by IDE

In the course of learning java and j2ee, you will encounter a wide variety of Ides. Don't be confused by them. When learning JAVA, you should learn the language, and don't care too much about the additional functions of IDE, it is easy to convert JAVA programming between different ides. If you care too much about IDE functions, it is easy to delay your understanding of the language. Currently, popular ides include jbuilder, enhanced version WSAD of eclipse and eclipse. Use one of them. We recommend that you start with eclipse j2ee. Jbuilder is more suitable for writing j2se programs.

Select and learn server usage Configuration

When you have j2se and IDE experience, you can start learning j2ee. The web server is tomcat, which is undoubtedly the first choice for Learning web Services. Currently, there are three application servers: jboss, weblogic, and websphere. Many projects start to adopt jboss, and a large number of companies start to transplant websphere or weblogic to the jboss Application Server (saving costs, I think it is the first choice and the easiest way to get started with tomcat and jboss. It is best to ask experienced people (if conditions are met) to learn the server configuration, because they can solve the problem in one sentence, it may take one or two days for you to explore the Internet on your own (I did this silly thing). We should focus on learning principles and theories, the use of a particular technology will never replace one's knowledge and knowledge.

Learn web Knowledge

If you are using an e-commerce website, you may have to play several roles:
Html, may need to use dreamwave and other IDE.
Javascript, learn simple data verification, Data Association display, and so on

J2eeAPI Learning

Learning j2eeAPI and learning server should be an iterative process.

First, I learned a lot about jsp and servlet programming. I have established two "jsp design" and "java servlet programming" books by oreilly. the books written by oreilly are always outstanding and have to be admired.

To learn jdbc database programming, most j2ee projects are MIS systems, and database access is the core. This should belong to j2se learning. Here we will emphasize it.

Learn the jndi api, which can be combined with learning ejb.

Learning ejb api, recommended book "Excellent ejb"

After the above learning, we can probably deal with general applications.

Some people say that they can follow sun's j2ee tutorial to learn it all the way.

  
Learning ejb Design Patterns and viewing code (most important)

The design pattern is an internal skill, so the importance of it can be said. If you don't use the design pattern, you will write a bunch of spam using ejbs, which is slow and a bunch of bugs, the result is not as good as ejb implementation (ejb is not equal to j2ee)
No matter what language you want to learn, you should read a lot of code. If you don't have a certain amount of code, you cannot learn j2ee.
Currently, many open-source projects can be used as teaching materials:

Jive Forum
Petstore sun
Dune sun

Wait, read one and use it in your own project.

Other J2ee Learning

When you get to know a certain degree of depth about j2ee, you need to pay attention to some technical changes in the current field. J2ee is a field of competition and everyone puts forward their own solutions here, for example, structs, hiberate, ofbiz, etc. Learning these things depends on your project and goals. It is not necessary to add them in advance, but it does not need to be too deep, after all, learning principles and theories are the most important thing.

J2eeAPI
Assumerver Pages (JSP) technology 1.2
Java Servlet technology 2.3
Jdbc api 2.0
Java XML processing API (JAXP) 1.1
2.0 Enterprise JavaBeans Technology
Java Messaging Service (JMS) 1.0
Java Naming Directory Interface (JNDI) 1.2
Java transaction API (JTA) 1.0
Java sdk api 1.2
Javajans activation architecture (JAF) 1.0
J2EE Connector Architecture (JCA) 1.0
Java authentication and authorization Service (JAAS) 1.0

Learning some of the above APIs depends on your project. It is good to know all of them.

As mentioned above, the java language itself is not difficult to learn, but there are too many technologies, so it is very difficult to learn java. In retrospect, almost every beginner may ask such a sentence when learning java. How do you know which method (api) is in which package? Haha, no other, but skilled.

 

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.