Notes and Guides
Developer Guides
Useful information on performing common J2EE tasks with Oracle JDeveloper versions 10.1.2 and 10.1.3 in conjunction with Oracle Application Server 10.1.2. (trust me, these versions don’t always work well together):
MyEclipse Guides
I developed these walk-thrus for myself and fellow co-workers because quite honestly it’s next to impossible to remember all the details when working with multiple IDEs. Built around Eclipse 3.10 and MyEclipse 4.0.
Creating Stateless Session EJBs in MyEclipse using XDoclet, with JBoss
NetBeans Guides
These guides were developed using NetBeans 4.10 and Sun Application Server 8.
A Session EJB Example with NetBeans 4.1 and Sun Application Server
Database Connectivity via Java
To connect to a SQL Server database, it’ll be necessary to download and install SQL Server 2000 Driver for JDBC first. Just a few lines of code later, and we have a connection to the database:
// Register the driver.
Class.forName(“com.microsoft.jdbc.sqlserver.SQLServerDriver”);
// or:
//DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
// Get the connection. Database name may or may not be necessary?
String url = “jdbc:microsoft:sqlserver://hostname:1433″;
String user = “username”;
String pwd = “password”;
String db = “database”;
Connection con = DriverManager.getConnection(url + “;User=” + user
+ “;Password=” + pwd + “;DatabaseName=” + db);
Connecting to a MySQL database is just as easy. First, download and install the MySQL Connector/J driver and incorporate the following snippet into your code:
// Register the driver.
Class.forName(“com.mysql.jdbc.Driver”);
// or:
//DriverManager.registerDriver(new com.mysql.jdbc.Driver());
// Get the connection.
String url = “jdbc:mysql://hostname/database”;
String user = “username”;
String pwd = “password”;
Connection con = DriverManager.getConnection(url, user, pwd);
Other Notes
- Running Riven On XP - how I got Riven: The Sequel To Myst to run under Windows XP from the hard drive.
- Mac Development Notes - notes compiled while learning Mac OS X programming, typically from the books I’m reading and any observations I have.
