This essay developed out of conversations I've had with several other programmers about why Java smelled suspicious. It's not a critique of Java!
Sycorax - complete tutorials
Programming Tutorials
" Java provides the industry - software companies and customer alike , an opportunity to create a true open computing environment where software is portable,
and customers benefit from increase competition. "
Java and the Future
December 1, 2008-LEJB 3.1: EJB New and Improved!
The EJB 3.0 specification was a huge improvement from what you were used to in the early versions of EJB. Available as an early draft, EJB 3.1 has many more features and is even easier to use.
December 1, 2008-Should Java Assert that Network I/O Can't Occur on the UI Thread?
Doing network I/O on the user interface (UI) thread is bad. Most developers know that and can tell you why; unfortunately, it's still done.
Register now to recieve special alert and latest technology news!
Thin driver example
import java.sql.*;
class TestThinApp {
public static void main (String args[])
throws ClassNotFoundException, SQLException {
Class.forName("oracle.jdbc.driver.OracleDriver");
// or you can use:
// DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver(
));
Connection conn = DriverManager.getConnection(
"jdbc:oracle:thin:@dssnt01:1521:dssora01","scott","tiger");
Statement stmt = conn.createStatement( );
ResultSet rset = stmt.executeQuery(
"select 'Hello Thin driver tester '||USER||'!' result from dual");
while(rset.next( ))
System.out.println(rset.getString(1));
rset.close( );
stmt.close( );
conn.close( );
}
}
For this example to work, the following conditions must be met:
. You must have the Oracle classes12.zip file listed in your CLASSPATH.
. You must have JDK 1.2.x or higher installed.
. You must have access to an Oracle8i (or higher) database.
To compile the program, type the code into a file named TestThinApp.java. Change the database,
in the form host:port:sid, the username, and the password to appropriate values for your
environment. Then type the commands shown in the following example to compile and run the
program:
C:\> javac TestThinApp.java
C:\> java TestThinApp
Hello Thin driver tester SCOTT!