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!
OCI driver example
import java.sql.*;
class TestOCIApp {
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:oci8:@dssora01.dss","scott","tiger");
Statement stmt = conn.createStatement( );
ResultSet rset = stmt.executeQuery("select 'Hello OCI 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 Oracle8i client installed.
. The Oracle classes12.zip file must be 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 TestOCIApp.java (remember, Java is
case-sensitive). Be sure to change the database, username, and password to values that will
work in your environment. Then, to compile and execute the program, type the commands shown
in the following example:
c:\> javac TestOCIApp.java
c:\> java TestOCIApp
Hello OCI driver tester SCOTT!
For example, if your Oracle JDBC classes file is
located in c:\oracle\ora81\jdbc\lib\classes12.zip, then your CLASSPATH environment variable
should look something like this:
CLASSPATH=c:\oracle\ora81\jdbc\lib\classes12.zip;