Java Tutorials
I've been working in Java of late. One of the problems with Java is that you end up working with a bunch of tools from a bunch of places and it can be a bit tricky to get up to speed.
In keeping with the theme of Take the First Step, I've started working on some tutorials on Java Development Tools (the process is also an effective way of imprinting the information in my brain).
| Ant | |
|---|---|
| Writing an Ant Build File:
Hello World |
Ant tutorial on targets, target depends and the echo task. |
| Writing an Ant Build File:
Java Hello World |
Ant tutorial on the javac, jar and java tasks. |
| Writing an Ant Build File:
Using Properties |
Ant tutorial on the use of properties to specify work directories. |
| Writing an Ant Build File:
Using JUnit Part 1 |
Ant tutorial showing a trivial junit task example with an explicit java classpath. |
| Writing an Ant Build File:
Using JUnit Part 2 |
Ant tutorial showing control of JUnit exit status with multiple test cases. |
| Writing an Ant Build File:
Conditional Execution |
Ant tutorial showing the conditional execution of targets, includes the use of JUnit test status to optionally execute targets. |
| Writing an Ant Build File:
Setting Properties |
Ant tutorial on setting properties, introduces the available and condition tasks. |
| Writing an Ant Build File:
Java System Properties |
Demonstration of the sysproperty attribute of the Ant java task. |
| Writing an Ant Build File: Modifying Property Files |
Ant tutorial on modifying values in a property file with the propertyfile task. |
Hibernate |
|
| So you want to learn Hibernate | A simple [and useless] console application using Hibernate. Presents a simple ant build file. |
| Controlling Hibernate output with Log4J | A still simple [and useless] console application using Hibernate and Log4J. A property is used to direct hibernate log output to either System.out or a log file. |
| A Persistent Collection with Hibernate | Simple application to create and retrieve a persistent collection. |
| Hibernate Prototyping with the BeanShell | Using the BeanShell to interact with Hibernate. |
| Adding a Hibern8IDE browser | The Hibern8 IDE is a quick'n'dirty Hibernate query tool and a pretty slick way to view your persistent data store. |
| Cascading actions from Parent to Child | A set of BeanShell sessions that demonstrate the behavior of a many-to-many relationship for different values of the cascade attribute. |
OpenEJB | |
| Getting Started with OpenEJB | The OpenEJB Hello World example is a good place to get started, but I kept looking for an ant build file. Here is my version of that build file. |
| A Simple Entity Bean with OpenEJB | A simple entity bean with ant build file. This example uses HSqlDB and provides a custom Home query method. |