Wednesday, May 30, 2007

Starting EJB Certification

I am now studying for the Sun Certified Business Component Developer exam. Three to Ten weeks is the estimate in the book. That means that theoretically by the end of June I should be through enough Mock exams to have my certification complete in early July. This would be an excellent addition to my resume.

Thursday, May 17, 2007

Passed SCJP 1.5

Passed the SCJP 1.5 today. I have to say it was a challenge. Thanks to everyone for their support in helping me achieve this goal.

Thursday, May 10, 2007

SCJP Exam

The exam for myself is scheduled for May 17th. I've passed my last 3 whizlabs exams and I'm expecting to pass my Whizlabs final exam on Tuesday the 15th. Two days later I'll be taking the full fledged Sun Exam. I'm trying not to underestimate it. I know that many people say that people over study for it. The way I see it is that if I over study and get a great grade I can put the big old score on my resume. If I pass with something more average then I can still put on there that I'm certified. While everyone around me insists it shouldn't be a big deal for me I still take it very seriously.

Next update on the SCJP Exam sometime the 17th or shortly thereafter.

Wednesday, May 02, 2007

Test From Brainbench

Well, figured I'd test out my Java 5 skills on brainbench. Scored above 80% of others so that's not bad. Didn't find the questions really up to helping me on the SCJP but oh well. Guess I can add another brainbench cert. :) Thanks brainbench for the freebie.

Tuesday, May 01, 2007

Java code snippet for ODBC connections.

Java code snippet for ODBC connections.



import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement ;

public class JDBCDemo {
public static void main( String[] args ) {
try {
// Connect to the database
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// JDBC:ODBC:
String database = "jdbc:odbc:DRIVER={Microsoft Visual Foxpro Driver};SourceType=DBF;"
database+= "SourceDB=J:\\data\\;Exclusive=No;Collate=Machine;NULL=NO;DELETED=NO;BACKGROUNDFETCH=NO;";
// USERNAME/PASSWORD (If Needed)
Connection con = DriverManager.getConnection(database, "", "");
// Execute the SQL statement
Statement stmt = con.createStatement();
ResultSet resultSet = stmt.executeQuery("SELECT * from claim");
// Loop thru all the rows
while( resultSet.next() ) {
String data = resultSet.getString( "field" );
System.out.println( data );
}
stmt.close();
}
catch( Exception e ) {
System.out.println (e.getMessage());
e.printStackTrace();
}
}
}