October 19, 2010 database connection pool & URL rewriting

2010-10-19  来源:本站原创  分类:Java  人气:158 

Feelings of deep learning day today.

Am talking about the database connection pool. Very good topic. Is what I found when writing the project a solution to the problem. Access to the database, after all, have to face a problem. Use the database connection pool, which eliminates the stop the performance of creating and destroying connections consume. I am curious about is the use of JNDI. the so-called database connection pool is the InitialContext of the. It is based on the configuration file from the container to read out the attributes to create and hold a connection. You can lookup ( name) method to get connected (DataSource). because of the use of a standard implementation provided here DriverManager connection to DataSource and is consistent. Internet search of the investigation, found that the use of JNDI is very wide. Remember a few days ago to find IoC information, initially emphasized are the traditional way to obtain new objects and JNDI lookup. IoC also proposed a complete different mechanism. was the understanding that the creation and maintenance of the object from the container when necessary to achieve the application may request the container . container will be given an object. Now it seems this and I understand the the JNDI is consistent. some doubts. In short the two concepts should not well understood. to be understood.

Another issue is URL rewriting. Before the term was to see Cookie and Session in learning time. That the implementation is based on the Session Cookie, if the Cookie functionality is turned off, Session must be other ways to complete. Java innovative URL rewriting is proposed. Today, the teacher's function is to hide implementation and streamline the browser address bar and then simplify access. as is the use of other components, so nothing technical at all.'d really very good, but functional. This to me xml file is inspired by the use of decision-making process can be very flexible process. will be a great number of variables into the XML data, you can reduce application maintenance costs.

With the deepening of the course, and finally a little more clearly. I began to realize the benefits package. First, the connection pool today after school need to change the forum project is doing the database connection. Here because the common operations on the database were package. So you only need to getConnection () implementation of code changes on it. another, we must learn that the framework of Spring, the information from my point of view before the view is to enhance this "embrace change" capability. is This it does very complicated. One of the reasons'd easily figured out, there is loss of income will have some thing. Our Java study group had more on the right track. yesterday and today, we eat together and then come listen to the sorting algorithm Xiaoge . is that a few people, but very seriously. This is what we had desired effects. group content is also very good, Xiaoge prepared quite well, will talk about the principles of heap sort all understand. on the code , that is, they ought to do tonight. I found these algorithms contains strong unspeakable charm. such as an array with the same sort is needed to directly select the sort bloated and seemed efficient and elegant heap sort . I've seen so-called "data structure thinking" also has some experience. an array by treating it as a binary tree can be drawn to a new sorting algorithm is relatively efficient. probably can be counted as data structure An explanation of thinking it.

Today, the planned investment over seven resumes. This is a way to persuade their own quiet. VII, a satisfactory figure. I have very important lessons need to learn meditation, there are many points to make their own review of knowledge. If looking for work delayed because of the things now, but could not find a job. it is so wonderful. I do my strength, and if no results, then wait until a month later come!

相关文章
  • October 19, 2010 database connection pool & URL rewriting 2010-10-19

    Feelings of deep learning day today. Am talking about the database connection pool. Very good topic. Is what I found when writing the project a solution to the problem. Access to the database, after all, have to face a problem. Use the database conne

  • August 25, 2010 --- --- bonecp database connection pool for a simple connection pool creation and use of 2010-08-25

    When doing a database link, found that the jdbc can not meet the program a large number of user connection requests, then start using the database connection pool. The reason is that a database link is a very time-consuming and are therefore using th

  • Why do you want to add a database connection pool 2010-04-27

    Today in learning kauklahti when he wrote a Jdbc connection mysql example. Be regarded as a bit Jdbc usage review. The entire source code examples are as follows: //------------------------------------------------------------------------------------

  • Based Tomcat5.0 of Oracle10g database connection pool 2010-07-29

    It took three hours this afternoon, the time to study the look of Oracle10g on Tomcat5.0 database connection pool, would have thought that simple, because it was done based on Tomcat6.0 configuration SQLServer2005 database connection pool, that the t

  • Database connection pool technology dbcp.c3p0.jndi 2011-10-21

    No matter what kind of persistence through technology, must access the database via the data connection, in the Spring, the data connection is obtained through the data source. In previous applications, the data source Web application server is gener

  • SqlServer database connection pool to connect tomcat 2009-03-01

    First, install the JDBC Driver The database driver jar file to put (Tomcat_install) \ common \ lib directory Second, configure the Connection Pool 1. Overall connection pool configuration, Tomcat in any Web application can be configured to use the co

  • hibernate configuration data source. hibernate - Database Connection Pool 2009-04-30

    In order to configure their own testing environment, and required their entire framework of the abstract, the introduction of the test framework, the tests have their own test cases. Database connection pool but found the old problems, questions and

  • JAVA Database Connection Pool 2009-10-24

    Although using APACHE COMMONS DBCP can be very convenient to establish a database connection pool, However, as this article within the database connection pool principles written in such a thorough look so complete, Is really very rare, so that devel

  • An effect is very nice JAVA database connection pool 2009-08-05

    import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.Enumeration; import java.util.Vector; /* Although the use o

  • oracle database connection pool 2009-08-21

    J2EE applications with Oracle database connection in the J2EE application development, application and database connection establishment is one of the problems we often encounter. Here I will mainly talk about in local applications through OCI way, t

  • Weblogic access oracle database connection pool configuration (change) 2010-03-29

    Sql Code Weblogic access oracle database connection pool can be used three kinds of ways to configure JDBC One in the weblogic console in accordance with the following configuration to establish connection pool, and modify the file startWeblogic.cmd

  • Set the database connection pool (personal order) 2010-03-19

    To improve performance, if direct access to the database connection, performance is relatively low. Generally use a connection pool, connection pool to manage the database through the connection, so you can achieve an efficient operation of the role

  • About the database connection pool 2010-03-07

    Database connection is an expensive key limited resources, this web page in a multi-user applications, especially embodied. The management of the database connection can significantly affect the entire application scalability and robustness to the ap

  • Weblogic access the oracle database connection pool configuration (change) 2010-03-29

    Sql Code Weblogic access the oracle database connection pool can be configured in three ways JDBC One in the weblogic console in accordance with the following configuration to establish connection pool, and modify startWeblogic.cmd file 1 weblogic wa

  • Weblogic access the oracle database connection pool configuration 2010-04-20

    Weblogic access the oracle database connection pool configuration in Weblogic access oracle database JDBC connection pool in three ways you can configure one in the weblogic console in accordance with the following configuration to establish connecti

  • JDBC database connection pool 2010-05-07

    In tomcat6.0, server2000 database and connection pool configuration under myeclipse (with MySQL database similar) Tomcat 5 configuration data source data source with Tomcat 5.5 configured with many differences, Tomcat 6 of the data source configurati

  • DBCP database connection pool 2010-06-24

    Concepts: database connection pool for distribution, management and release database connections, it allows applications to reuse an existing database connection, instead of re-establishing a connection; release of free time over the maximum idle tim

  • Deeper understanding of database connection pool 2010-07-08

    Although the use of APACHE COMMONS DBCP can be very convenient to establish a database connection pool, but as this article within the principles of database connection pool to write so thorough, so complete attention, is really very rare, so develop

  • A very good effect JAVA Database Connection Pool 2010-07-14

    import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.Enumeration; import java.util.Vector; /* Although the use o

  • commons-dbcp database connection pool technology 2010-07-15

    Work, met application needs a database connection pool. This is undoubtedly a challenge to the program performance. Why does the database connection pool? Because every time a new connection, resource-intensive. I do in their notebooks on the experim