discuss:
http://www.cs.princeton.edu/sip/java/
about the development platform if you are unwilling to use Notepad or EditPlus as well as UltraEdit. I'd just like to recommend Sun one Studio, which is fully developed in Java. Support for Solaris,linux, as well as Windows platform (of course, is divided into three versions).
can be downloaded via this address:
http://wwws.sun.com/software/sundev/jde/index.html
learned a certain depth, we most want to know is the Java will be together, vi
problems, spring as a business layer framework, does not support the business Layer session function.
Specific examples are as follows: When we realize the shopping cart and other business functions, we need to save the shopping situation to the session, because the business layer has no convenient session support, we have to save the cart to HttpSession, And httpsession can only be obtained through HttpRequest, and because the HttpRequest object cannot be accessed in the Spring Business layer
Related article links
design mode and technology of Java EEHttp://dev.csdn.net/develop/article/18/18796.shtm
Application of design patterns in EJB speciesHttp://www.chinabyte.com/20030423/1665171.shtml
Implementation and comparison of several business agent models in Java EEHttp://www.jdon.com/artichect/businessproxy.htm
Discussion of implementation methods in a small Web projecthttp://www.jdon.com/jive/article.jsp?forum=46thread=17044
Java EE de
This article describes the JSP implementation of the Dynamic Web page into a static page method. Share to everyone for your reference. Specifically as follows:
If I can convert a JSP dynamic page to a static page, then there is no need to visit the database frequently.
JSP Display content Caching tips
Some time ago to do their own community forum, on the basis of Jive to do a page to show all the forum posts, can be called the general version, imit
decoupling.Therefore, in actual programming, we should also put our own function to these three levels, it is not easy to do this without technical constraints, so we still have to use the Java technology to implement it, and then you can implement the service layer and the persistence layer using the EJB specification, Web technology to achieve performance layer;Why does EJB detach the service layer from the Jsp/servlet because it enforces constraints on JavaBeans encoding, and there is now a
, and performance
Most enterprise applications have transitioned to Web Technology for delivery. For example, file management systems such as Microsoft SharePoint, Documentum, Jive, and Google Docs are all transmitted over HTTP and SSL. The latest Microsoft Exchange and Outlook versions have also been used to interface mapis from message applications) transfer to HTTP. You should consider upgrading your enterprise application to the latest version, be
:
Transaction (){Process 1 ();Process 2 ();}
We can see that the connection is created separately in process 1 and 2, andProcess.If an exception occurs in process 2, the operations performed in process 1 cannot be recovered.If it can be controlled within the transaction scope, such:
Transaction (){Connection con;Process 1 (CON );Process 2 (CON );Con. Close ();}
As a result, the database provides less than one connection, and the Transaction completion is also reflected. When the concurrency is l
Factory mode definition: instantiate an object and use the factory method instead of the new operation. Why? The factory mode is our most commonly used model. The famous jive forum has used the factory mode extensively. The factory mode can be seen everywhere in Java program systems. Why is the factory model so commonly used? Because the factory mode is equivalent to creating the new instance object, we often need to generate instance objects accordin
architecture
Servlet ing wildcard problem: the ing URL cannot be set to "/Action/*. Do"Servlet ActivatorThe role of the default servlet, the default servlet cache, and the default servlet source code for reading. The cache technology of the jive forum is prompted.Tomcat classloader: running the servlet program in the classpath environment variableCompile a tool for automatically compiling and deploying servlet programsServlet running process analysis
this point of view, the input and output of a J2EE system are very complex and dynamic, while Java runs across platforms. In actual compilation and running, different operating systems may be involved. If Java is allowed to determine the encoding Character Set of the input and output based on the operating system, this will lead to uncontrollable garbled characters.
It is precisely because of the cross-platform feature of Java that the character set problem must be solved by a specific system.
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.
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
Mina is a Java server with a very good C/S architecture. Here I turn to an article about how it is used.
PrefaceMina is the latest Java communication framework developed by trustin Lee. The main function of the communication framework is to encapsulate underlying Io operations and provide advanced operation APIs. Well-known communication frameworks include C ++ ace and Python twisted, while Java communication frameworks include quickserver, netty2, Cindy, and grizzly.In June 2004, trustin Lee re
programming, We need to align our functions to these three levels to make the general direction clear and distinct, however, it is not easy to do this without technical constraints. Therefore, we must also use the specific J2EE technology. At this time, you can use the EJB specification to implement the service layer and persistence layer, web technology implementation presentation layer;
Why can EJB separate the service layer from the JSP/servlet, because it has mandatory constraints on JavaBe
1. Concepts
Factory mode definition: instantiate an object and use the factory method instead of the new operation. Achieve decoupling (avoid hard coding coupling ). The factory method mode is the class creation mode, also known as the virtual constructor mode or the polymorphic factory mode.
The factory mode is our most commonly used model. The famous jive forum has used the factory mode extensively. The factory mode can be seen everywhere in Java
poolJDBC solution ()JDBC SolutionGetting started with JDBCJDBC example (for conversion)Rowset interface specification in jdbc3 [Simultaneous view and translation]Jdbctm guide: getting startedJdbctm guide: entry 2-connectionJdbctm guide: Getting started 3-drivermanagerJdbctm guide: Entry 4-StatementJdbctm guide: Getting started 5-resultsetJdbctm guide: Getting started 6-preparedstatementJdbctm guide: Getting started 7-callablestatementJDBC and ODBC)Introduction to JDBCTechnical Transfer of JDBC
that just logged on through LINQ.
;Configure an MSN account:
9. Right-click "MSN. lizongbo. Im", select register on the service, and click "Next"10. The title of the registration box is not displayed because of some problems with server configuration. Fill in the MSN account in the first text box above, fill in the MSN password in the text box below, and then click Next.11. Click "complete" after the registration is successful ".12. Send a message to an online colleague. After testing, the mess
. Object reuse (especially for large objects)PublicClass Point{
Public int X;Public int y;Public point (){
This (0, 0 );}
}Optimized:Public Class component{
Private int X;Private int y;Public point getposition (){
Point Rv = new point (); // create a new pointRV. x = x; // update its stateRV. Y = y;Return RV;}
}// Process an array of component positions...For (INT I = 0; I lt; componentarray. length; I ++ ){Point Position = componentarray [I]. getposition ();// Process position value...// Note:
"Patchwork" and call similar to building blocks, some people even advocate "blue-collar programmers", which are not familiar with modern programming technologies.
In truly reusable object-oriented programming, gof's Design Pattern provides us with a set of reusable Object-oriented technologies, coupled with refactoring ), therefore, there are few simple repetitive tasks, and Java code refinement and object-oriented purity (the design pattern is the soul of Java ), programming becomes an excitin
operating system Linux and database MySQL. In this way, if you specify that the unified jive encoding is iso8859_1, you must take the following three steps:
During code development and compilation, the character set is specified as iso8859_1.
The default Operating System encoding must be iso8859_1, for example, Linux.
Declare in the JSP header:
(2) If it is specified as the GBK Chinese Character Set, the above three steps also need to be done. The d
are ant and maven.
Develop a good habit of writing documents: generally professional projects will have at least these documents, System Requirement Specification, design specification, installation documentation, user instructions and user manuals.
8. Let's look back at several typical open-source projects (Jive or Peterstore) and use your favorite development tools to skillfully transform them.
Add some excellent java website URLs:
Java technology:
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.