Feed on
Posts
Comments

Archive for February, 2008

Optimization with Connection

java.sql package in JDBC provides Connection interface that encapsulates database connection functionality. Using Connection interface, you can fine tune the following operations :
1. Set optimal row pre-fetch value
2. Use Connection pool
3. [...]

Read Full Post »

Overview of JDBC
JDBC defines how a Java program can communicate with a database. This section focuses mainly on JDBC 2.0 API. JDBC API provides two packages they are java.sql and javax.sql . By using JDBC API, you can connect virtually any database, send SQL queries to the database and process the results.

Read Full Post »

Serialization

Overview of Serialization
Serialization is the process of writing complete state of java object into output stream, that stream can be file or byte array or stream associated with TCP/IP socket.
Deserialization is the process of reading back that serialized java object stream from input stream.

Read Full Post »

Overview of Servlets
Servlets represent an extension to the HTTP server. It takes http request as an input and sends the http response to the client as an output. Servlet API provides two packages they are javax.servlet and javax.http.servelt. These packages contain interfaces and classes to deal with generic and http functionality that means you can [...]

Read Full Post »

Overview of JSP
When the user requests a JSP page for the first time, A JSP converts into servlet java source file and compiles into servlet class file that is called as translation phase, then onwards it works like pure servlet for all requests this is called execution/request process phase. But the method signatures are different [...]

Read Full Post »

Write thread-safe servlets

A thread is a single execution process; in other words, an individual, sequential flow of control within a program. When we say that a program is multi-threaded, we are not implying that the program runs two separate instances simultaneously (as if you concurrently executed the program twice from the command line). Rather, we are saying [...]

Read Full Post »

« Newer Posts - Older Posts »