Tutorials to .com

Tutorials to .com » Jsp » Jsp And Database

Jsp And Database Articles


1: Example of a connection pool (from JIVE) (2)
/ / File: DbConnectionDefaultPool.java the second part of / ** * Housekeeping thread. Runs in the background with low CPU overhead. * Connections are checked for warnings and closure and are periodically * Restarted. * This thread is a catchall...

2: Example of a connection pool (from JIVE) (1)
/ / File: DbConnectionDefaultPool.java the first part of / / Please note that there do indicate a need to modify the connection parameters of the local package com.qingtuo.db.pool; import java.sql .*; import java.util .*; import java.io. *; im...

3: Optimize JDBC Programming
JDBC programming to optimize this is in accordance with MS SQL SERVER 2000 JDBC DRIVER HELP, and reference data from other. ms of this paper is to help you lose style, sample code, it can ..... interested to download http://download.microsoft.com/do...

4: JDBC connection with Oracle database (to resolve this problem, and would like to sum up are welcome to point out that lack of brothers)
Usually have four options to connect, I only used two of which I have used tomcat under win98 Winnt server is the installation of Oracle I like the path is: D: \ tomcat \ webapps \ ROOT \ WEB-INF \ classes \ yourpackage jsp path: D: \ tomcat \ we...

5: JDBC to connect oracle database top ten tips
Oracle database through the JDBC connection of the top ten skills Java Database Connectivity (JDBC) API is a series that allows Java programmers to access the database interface, each interface is not exactly the same developer. For many years in t...

6: Through jdbc-odbc to Access database OLE types of table to insert data examples
/ ** * Description: * Jdbc-odbc through the Access database to insert a picture, or a mess of paper will do * Note that to be wrong with DataInputStream * / import java.sql .*; import java.io.FileInputStream; public class sss ( public stat...

7: clob field to deal with the (oracle)
Insert the first object PrepareStatement ( At this time we must set the Connection object AutoCommit for false, that is, conn.setAutoCommit (false); ), Such written statements: String sql = "INSERT INTO flower_news (flower_news_id, news_con...

8: To deal with a complete example of blob
import oracle.jdbc.driver.OracleResultSet; import oracle.sql.BLOB; import java.sql.DriverManager; import java.sql.Connection; import java.sql.ResultSet; import java.io. *; import java.sql.Statement; public class testBlob ( public static void...

9: Correction method of remote database access! (Young master did not say it!)
Remote access with JDBC database URL of the writing on the normal on the list! Such as: String ConnStr = "jdbc: mysql: / / IP: PORT / db"; String MyUser = "name"; String MyPassword = "password"; The most important t...

10: Dynamic use of JAVA agent database connection pool
Database connection pool in the preparation of applications is often necessary to use the module, too frequent service to connect the database is a bottleneck in terms of performance, the use of buffer pool technology to eliminate the bottleneck. We...

11: Oracle8 a jdbc connection examples (local page can )!!!!
try ( / / Load an Oracle-driven DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver ()); / / Connect to the database using the OCI8 conn = DriverManager.getConnection ( "jdbc: oracle: oci8: @ DatabaseName" +, "user&q...

12: A realization method of database connection pool (1)
Database connection pool in the preparation of applications is often necessary to use the module, too frequent service to connect the database is a bottleneck in terms of performance, the use of buffer pool technology to eliminate the bottleneck. We...

13: A realization method of database connection pool (2)
Followed by the type of connection pooling factory ConnectionFactory, to the adoption of such a connection pool object with a name corresponding to the user by the name can be accessed on the specified connection pool object, the specific code as fo...

14: A realization method of database connection pool (3)
DataSourceImpl is a realization of the javax.sql.DataSource interface class, such a connection pool to maintain the target. As a result of such is a protected category, so it exposed only to users of the methods defined in the DataSource interface m...

15: Learn how to handle null database
Java Database Connectivity (JDBC) type of result set to cover up a small bug, if you forget the words use wasNull methods. Relational database NULL value in the concept and Java in the concept of null values similar to that which can be any type of ...

16: The establishment of object-oriented database
In <envisaged the use of XML and relational database objects into a database> of a text has been elaborated on the relationship between database and object-oriented database of the main differences: the use of foreign keys is recorded through ...

17: JSP to connect SQL Server 2000 system configuration
:---- First installed J2SDK: SUN the official site (http://java.sun.com) to download the J2SDK installation file: j2sdk-1_4_2_04-windows-i586-p.exe, installed after download J2SDK; After installation, set up environment variables: My computer High ...

18: Access to database information using DatabaseMetaDate
import java.sql .*; public class GetDBInfo ( public GetDBInfo () ( ) public static void main (String [] args) ( try ( Class.forName ( "com.microsoft.jdbc.sqlserver.SQLServerDriver"). NewInstance (); String url = "jdbc: micro...

19: JAVA database connectivity issues do not have set up a data source
I read this section of code:: <% Class.forName ( "com.microsoft.jdbc.sqlserver.SQLServerDriver"). NewInstance (); String url = "jdbc: microsoft: sqlserver: / / localhost: 1433; DatabaseName = shop"; / / database name String...

20: J2ME visit procedures and Servlet Communication Access database
Authors: Wen Bo Time: May 26, 2005 J2ME technology is a lot of networking, I have only just contacted this regard, the past few days a number ofdebug procedures in this regard, learned a lot, following on to talk about my learning process. First o...


Page 1 of 6
[1]   [2]   [3]   [4]   [5]   [6]